[OpenLayers-Users] How can I donot let the map in the
overview-map zoomed and moved?
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Mon Apr 14 08:17:30 EDT 2008
Hi,
use something like:
isSuitableOverview: function() {return true;}
in your overview map constructor.
Example:
var overviewmap = new OpenLayers.Control.OverviewMap( {layers:
[overviewlayer], size: new OpenLayers.Size(225, 180), minRectSize: 10, div:
overviewdiv, isSuitableOverview: function() {return true;}, mapOptions:
options});
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
--------- Oorspronkelijk bericht --------
Van: Yang Zhaohui <yangzhaozhao2008 at 163.com>
Naar: users <users at openlayers.org>
Onderwerp: [OpenLayers-Users] How can I donot let the map in the
overview-map zoomed and moved?
Datum: 14/04/08 09:50
> Hello dear everyone,
> I find when I zoom in,zoom out or pan the map, the
map in the overview-map is also zoomed in/out or moved. In my opinion,the
overview map is called overview-map, because when I zoom-in the
main map in a certain zoom-level and we do not know where the positon I am
in the all map, it can show us a overview. But now the overview map is
zoomed and moved following the main map,how it can play the role of a
oveview-map? I want to know is there a way to let the map in the
overview-map do not been moved and zoomed.Could you please give me
some suggestions?Thank you very much!
>
>
>
>
> Æ·ÖÊ´ò¶¯ÊÀ½ç£¬ÐǺÓÍåÈ«ÐÂÈýÆÚÈÈÏúÖÐVIP:8610-85519999
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list