[OpenLayers-Users] Fw: Projection issue

Mr. Rahul Teni rahul_g_teni at yahoo.com
Thu Aug 13 08:29:13 EDT 2009


Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: india_states.map
Type: application/octet-stream
Size: 492 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090813/06e2a065/india_states.obj
-------------- next part --------------
var options = { maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), maxResolution: 156543.0339, units: "m", projection: new OpenLayers.Projection("EPSG:900913")};

map = new OpenLayers.Map('map',options);
map.events.on({"moveend": mapEvent});

var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34),
TRANSPARENT: 'true',
isBaseLayer:false
};
 var gphy = new OpenLayers.Layer.Google(
                " Physical",
                {'sphericalMercator': true,'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),type: G_PHYSICAL_MAP,numZoomLevels: 18,isBaseLayer: true}
            );
            var gmap = new OpenLayers.Layer.Google(
                "Streets", // the default
                {'sphericalMercator': true,'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),numZoomLevels: 18,isBaseLayer	: true}
            );
            var ghyb = new OpenLayers.Layer.Google(
                "Hybrid",
                {'sphericalMercator': true,'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),type: G_HYBRID_MAP, numZoomLevels: 18,isBaseLayer: true}
            );
            var gsat = new OpenLayers.Layer.Google(
                "Satellite",
                {'sphericalMercator':true,'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),type: G_SATELLITE_MAP, numZoomLevels:18,isBaseLayer:true}
            );


         map.addLayers([gsat,gphy,gmap,ghyb]);

indianStateBoundary = new OpenLayers.Layer.KaMap( "Indian State Boundary",tilePath,
		{       map: "gmap",
			g: "__base__",
			i:"PNG", 
			opacity:1,
			isBaseLayer:false,
			TRANSPARENT:'true'
		},
               options
		
	); 
map.addLayers([indianStateBoundary]);     


More information about the Users mailing list