[OpenLayers-Users] How to make OpenLayers.Map.panTo() work?

Vincent Gulinao vincent.gulinao at gmail.com
Sat Feb 6 23:30:52 EST 2010


I'm a newbie, I copied this from an example somewhere to start:

map = new OpenLayers.Map('map',
        {
            numZoomLevels: 19,
              maxResolution: 156543.0399,
              units: 'm',
              projection: new OpenLayers.Projection("EPSG:900913"),
              displayProjection: new OpenLayers.Projection("EPSG:4326")
        });


    var layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
map.addLayers([layerMapnik,layerTah]);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100207/1a9837fb/attachment.html


More information about the Users mailing list