[OpenLayers-Users] Object orientated map interface

John Westwood John.Westwood at port.ac.uk
Thu May 3 12:02:42 EDT 2007


Awesome, that works perfectly.

Thanks very much Ezequiel!

Regards,

John W.



================================
John Westwood
Research Assistant
Great Britain Historical GIS Project
Department of Geography, University of Portsmouth
Buckingham Building, Lion Terrace, Portsmouth PO1 3HE
 
GIS Project Office: (023) 9284 2500


>>> "Ezequiel Gonzalez Rial" <gonrial at gmail.com> 03/05/2007 16:47 >>>
John,
I recommend you to split your map into different divs and when you call
your
function, pass them as parameters. Using your files I could make it
work.

I copy the modified lines:
HTML:
17: newMap1 = new EmbeddedMap('map');
19: newMap2 = new EmbeddedMap('map2');

+31: <div id="map2"></div>

Javascript:
1: function EmbeddedMap(div)
3: var map = new OpenLayers.Map(div);

Hope you can use it this way.
-- 
Best Regards
Ezequiel Gonzalez Rial (gonrial at gmail.com)



More information about the Users mailing list