[OpenLayers-Users] Question about OverviewMap with non-standardparameter

Tim Schaub noreply at geocartic.com
Wed Jan 24 11:35:46 EST 2007


> I hope somebody can help me, in my Web Application I'm using 
> the OverviewMap contrl, with these MapOptions:
> 
> var ov = new OpenLayers.Control.OverviewMap({
> 	mapOptions:{
> 		projection: 'EPSG:23032',
> 		units:'m',
> 		maxResolution: "auto"
> 	}
> });
> 
> When the application start, the result is the OverviewMap 
> zoomed in the center, in the control I can't see all the map.
> 
> Can the overviewmap control calculate by itself the correct 
> zoom level?

As with any OL map, the default maxExtent is (-180, -90, 180, 90) - which
assumes a Geographic projection.  If you are using a different projection,
you need to set the maxExtent to something more appropriate.

See
http://trac.openlayers.org/wiki/Control/OverviewMap#Customprojectionsextents
etc.

Tim

> 
> Anybody can help me?
> 
> Best regards.
> 
> Jacopo
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 




More information about the Users mailing list