[OpenLayers-Users] Problems with map.panTo()

S.Reena reena at indiamail.com
Fri Oct 31 05:29:21 EDT 2008


Hey,
I tried alerting the values and 

map.maxExtent() gives ( -180,90,180,90)
map.minExtent() gives null
 Projection is
PROJECTION
   "init=epsg:4326"


The latlong is within the map only but still its not working :(



Christopher Schmidt-4 wrote:
> 
> On Fri, Oct 31, 2008 at 01:16:53AM -0700, S.Reena wrote:
>> 
>> Hi,
>> 
>> I am trying to use map.panTo() to pan to specified latlon( on top and
>> bottom
>> of map)but somehow the map is not panning to that lat long and remains
>> somewhere near the center only ...Can any1 suggest something..
> 
> Is your map projected? Are you specifying projected coordinates?
> 
> Are you specifying a lonlat outside the mapextent?
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Problems-with-map.panTo%28%29-tp20261599p20262435.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list