Discussion:
[mapguide-users] Open layers version 4.6
BMason
2017-12-16 19:55:27 UTC
Permalink
Hello all: MapGuide 3.0 currently uses OpenLayer version 2.13. Is there
any plan to be able to use the latest version of OpenLayers 4.6? I would
like to use animation tools for sea level rise, for example. see
https://openlayers.org/en/latest/examples/sea-level.html
thanks




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
Hans Milling
2017-12-18 07:41:10 UTC
Permalink
I created a similar effect in the old OpenLayers version. If you add all your
geometry to the same table and have a column with the sea level. You can set
a filter on the layer. e.g. sealevel=10 and when people move the slider you
can change the sea level felter to e.g. filter=30 or whatever. To get the
best performance, you have the sea level layer in a separate map that you
add to your open layers map, and you refresh this layer only when the slider
is moved. Then OpenLayers do not have to call mapguide to render the entire
map every time you change the sea level. Only the sea level map is rendered.
It is not as fast as the example, because the example loads all data to the
browser. But it still works ok.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
BMason
2017-12-18 22:58:01 UTC
Permalink
Thanks Hans, it is great to hear that there is a work around that can use
mapguide 3.0 and an older version of open layers. If possible, could I have
a look at the map that you created with a slider?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
Hans Milling
2017-12-19 13:41:17 UTC
Permalink
We use the EXT.JS javascript framework on top of OpenLayers for the GUI and
MapGuides Maestro API on the server to manipulate the map. We do not have
any public accessible maps with this slider.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
Loading...