I'm trying to do a new OpenLayers.Layer.SphericalMercator.inverseMercator(lon,lat). It seem to work fine on yahoo and google but not VE.
Here is how I set up the map layers // create Google layers GoogleAerial = new OpenLayers.Layer.Google( "Google Streets" , {type: G_NORMAL_MAP, 'sphericalMercator': true, 'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), numZoomLevels: 22} ); GoogleSatellite = new OpenLayers.Layer.Google( "Google Sattelite", {type: G_SATELLITE_MAP, 'sphericalMercator': true, 'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), numZoomLevels: 22} ); GoogleHybrid = new OpenLayers.Layer.Google( "Google Hybrid", {type: G_HYBRID_MAP, 'sphericalMercator': true, 'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), numZoomLevels: 22} ); // create Virtual Earth layers VEAerial = new OpenLayers.Layer.VirtualEarth( "Virtual Earth Raods", {'type': VEMapStyle.Road ,'sphericalMercator': true , maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)} ); VESatellite = new OpenLayers.Layer.VirtualEarth( "Virtual Earth Aerial", {'type': VEMapStyle.Aerial, 'sphericalMercator': true, maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)} ); VEHybrid = new OpenLayers.Layer.VirtualEarth( "Virtual Earth Hybrid", {'type': VEMapStyle.Hybrid, 'sphericalMercator': true, maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)} ); // create Yahoo layers YahooAerial = new OpenLayers.Layer.Yahoo( "Yahoo Street", {'type': YAHOO_MAP_REG, 'sphericalMercator': true, maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)} ); YahooSatellite = new OpenLayers.Layer.Yahoo( "Yahoo Sattelite", {'type': YAHOO_MAP_SAT, 'sphericalMercator': true, maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)} ); YahooHybrid = new OpenLayers.Layer.Yahoo( "Yahoo Hybrid", {'type': YAHOO_MAP_HYB, 'sphericalMercator': true, maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)} ); WMS = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/WMS/vmap0", {layers: 'basic'} ); Map.map2d.addLayers([GoogleAerial,GoogleSatellite,GoogleHybrid,VEAerial,VESatellite,VEHybrid,YahooAerial,YahooSatellite,YahooHybrid, WMS]); Is sphericalMercator not needed or done wrong for VE? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SphericalMercator-inverseMercator-on-VE-tp5432356p5432356.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users