[OpenLayers-Users] OverviewMap does not work with examples.

samd sdoyle_2 at yahoo.com
Tue Oct 30 14:51:57 EDT 2007


OpenLayers 2.5

As taken directly from the OpenLayers examples and my map is named map when
ever I add the following code:

var options = {mapOptions: {numZoomLevels: 1}};
map.addControl(new OpenLayers.Control.OverviewMap(options));

I always end up with:

bounds has no properties
zoomTo(null)OpenLayers.js (line 533)
zoomToMaxExtent()OpenLayers.js (line 535)
createMap()OpenLayers.js (line 408)
rectDblClick()OpenLayers.js (line 405)
remove("moveend", Object object=Object element=div#map)OpenLayers.js (line
365)
getCenter(lon=-122.297916,lat=37.844969 lon=-122.297916 lat=37.844969, 11,
undefined, undefined)

When I remove the offending lines everything works fine as usual!?:confused:
-- 
View this message in context: http://www.nabble.com/OverviewMap-does-not-work-with-examples.-tf4719927.html#a13493199
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list