Opened 16 years ago

Closed 13 years ago

#244 closed enhancement (fixed)

OpenLayers integration

Reported by: christoph Owned by: mapbender_dev@…
Priority: major Milestone: 2.7.2 release
Component: core Version:
Keywords: openlayers Cc:

Description

Work done in development sprint in April, see

http://trac.osgeo.org/mapbender/changeset/2344

Change History (5)

comment:1 by christoph, 16 years ago

In order to allow to use OpenLayers instead of the Mapbender map "mapframe1", I have done some refactoring in a branch.

This is the idea:

Currently, the maps and the service data are always loaded in map.php (even if no map is contained in the application). I have isolated the code concerning maps and service data, and have added these files as "modules" to mapframe1.

If you were to add a map module like "OpenLayers", you would just replace "mapframe1", and everything should work as usual. We just need to add "OLON" (OpenLayers Object Notation, basically the OpenLayers map serialized as JSON) as a new output format to the map and service classes.

Of course, the old controls will not work with an OpenLayers map frame. We should update the "requires" fields for modules (like almost all buttons that do map manipulation, like "zoomIn1" etc), and check if the application violates any of these constraints.

I will start to add the OLON output functions to the map and service classes as soon as there is some funding; I'll be starting with class_map.php and class_wms.php. We should have basic functionality very soon, after the development has been funded.

comment:2 by christoph, 16 years ago

current development in branch "beck_dev", add this to all GUIs using maps:

UPDATE gui_element SET mb_mod = 'map_obj.js,map.js,wms.js,wfs_obj.js,initWms.php' WHERE e_id = 'mapframe1'

comment:3 by Greq, 16 years ago

correct SQL:
UPDATE gui_element SET e_mb_mod = 'map_obj.js,map.js,wms.js,wfs_obj.js,initWms.php' WHERE e_id = 'mapframe1'

comment:4 by astrid_emde, 15 years ago

we had a discussion about it at the mapbender developermeeting 1.9.2009

  • we don't take the openlayers client instead of mapframe1 in a mapbender gui
  • we want to implement similar functionality as ol
    • zoom with srcollweel (already implemented planned for MB 2.6)
    • tiled request (further discussion is necessary)

have a look at:

comment:5 by marc, 13 years ago

Milestone: 3.0 release2.7.2 release
Resolution: fixed
Status: newclosed

should be done with 2.7

Note: See TracTickets for help on using tickets.