[OpenLayers-Users] Function setCenter
Arnd Wippermann
arnd.wippermann at web.de
Wed Feb 18 16:05:41 EST 2009
this should work:
map.setCenter (new OpenLayers.LonLat (lo, la).transform(new
OpenLayers.Projection( "EPSG: 4326"), new OpenLayers.Projection( "EPSG:
900913")), 12);
Arnd Wippermann
_____
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Marcello Brunaldi
Gesendet: Mittwoch, 18. Februar 2009 17:10
An: users at openlayers.org
Betreff: [OpenLayers-Users] Function setCenter
I have a base layer of google where I inserted the marker whose GeoRSS point
coordinates in EPSG: 4326;
to be displayed correctly, I had to insert the projection option:
new1 [0] = new OpenLayers.Layer.GeoRSS ( 'GeoRSS', 'GeoRSS / blu.xml', (
'projection': new OpenLayers.Projection ( "EPSG: 4326"), 'icon': color [0])
);
How do I set the same thing when I setcenter?
Longitude and latitude the amount from my xml file, and when I go to hit the
marker but the coordinates do not match
map.setCenter (new OpenLayers.LonLat (lo, la), 12, true);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090218/87712542/attachment.html
More information about the Users
mailing list