[OpenLayers-Users] Object orientated map interface

John Westwood John.Westwood at port.ac.uk
Thu May 3 11:14:39 EDT 2007


Hi OpenLayers Gurus,

I am trying to write an object orientated map interface with Javascript
and OpenLayers. So far I have been partially successful. The problem
occurs when I attempt to navigate one of the map windows. If I use the
map controls located on the left then each map behaves independently,
which is what I want. However, if I pan by clicking and dragging the map
or if I zoom by shift clicking and drawing a zoom rectangle, then both
maps respond simultaneously - which is NOT what I want.

Is this a problem with my code? Or something to do with OpenLayers? Or
something to do with AJAX in general? Any ideas would be greatly
appreciated. I am attaching my code (a html file and a js file - renamed
jscript so that it isn't blocked) and a picture of the output.

Regards,

John Westwood



================================
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectOrientated.jpg
Type: image/jpeg
Size: 154485 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070503/29ecb16d/ObjectOrientated.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EmbeddedMap.jscript
Type: application/octet-stream
Size: 1684 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070503/29ecb16d/EmbeddedMap.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070503/29ecb16d/embedded.html


More information about the Users mailing list