Map parameters in Heron

35 views
Skip to first unread message

Just van den Broecke

unread,
Dec 7, 2017, 8:19:11 AM12/7/17
to Heron Dev List
Hi,

Triggered by an issue on permalinks I just commented on:
https://github.com/heron-mc/heron-mc/issues/450#issuecomment-349961605

But for many the existence of the "map params" feature may not be known
at all. This may be handy to e.g. exchange map views. Demonstrating by
example:

http://lib.heron-mc.org/heron/latest/examples/default/?map_zoom=10&map_x=4.9&map_y=52.2&map_visibility_Meteosat%20Precipitation=true

This opens the mapview at zoom, lon, lat resp 10, 4.9, 52.2 and switch
on the Layer "Meteosat Precipitation".

By default the prefix for each query param is "map_", so to go to a
specific point/zoom:
map_zoom=10&map_x=4.9&map_y=52.2. Layers are switched on/off via the
Layer visibility using the OL Layer name, in the form
"map_visibility_<layername>=true|false", for example:

map_visibility_Meteosat%20Precipitation=true

Best,

Just
Reply all
Reply to author
Forward
0 new messages