[OpenLayers-Users] Re: Markers in an overview map?

Fabian Patzke 2 listensammler at patzi.de
Wed Jan 4 11:32:01 EST 2012


The overviemap is a special map created by the overview control.
But it is still a normal map that can have layers and so also vectors on
top.
To acces the map of the overview control you have to use the ovmap property
of your ov-control

i.e.

  var map = new OpenLayers.Map('map');

  var overview = new OpenLayers.Control.OverviewMap();
  map.addControl(overview);
  
  //this is the overview map
  var ovMap = overview.ovmap;


also see: 
http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html
http://openlayers.org/dev/examples/overviewmap.html

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Markers-in-an-overview-map-tp7139023p7151049.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list