[OpenLayers-Users] Multiple OpenLayers maps

mc.prins mc.prins at gmail.com
Wed Oct 1 08:17:46 EDT 2008


On Wednesday 01 October 2008 13:58:41 Bas Couwenberg wrote:
> Hello,
>
> is it possible to include multiple OpenLayers maps into one web page
> because I tried it with two maps but because of the double <div
> id='map'></div> tag this doesn't work. Can you use self chosen id's for the

yes; use different id's for the div's (and var names in the script)
note that using a permalink url will result in all the maps on the page going 
to the same loc/layers/extent as the permalink atm does not include the map's 
id.
eg: http://wild-water.nl/dokuwiki/doku.php?id=playground:kaart_plugins


> div tag and can this be simply done by changing "map = new
> OpenLayers.Map('map', options);"? Must this then also be done for the <div
> id='panel'></div>?
>
> Best regards,
>
> Bas Couwenberg



More information about the Users mailing list