Blog: Change your maps look and feel

2 views
Skip to first unread message

Romain Rigaux

unread,
Jul 19, 2016, 9:35:04 PM7/19/16
to Hue-Users
Originally posted on http://gethue.com/change-your-maps-look-and-feel/


Did you know that you can change the look and feel of your Hue maps just by specifying two extra variables on the Hue configuration?

Screenshot 2016-07-18 21.15.19

Here above the default style of Hue’s maps; we use the open source library Leaflet to draw them.

They also did a great job putting together a list of map providers that can be used in Hue as well: https://leaflet-extras.github.io/leaflet-providers/preview/.

Screenshot 2016-07-18 21.23.35

Let’s display the Esri.WorldImagery in Hue!

The properties we need to tweak are leaflet_tile_layer and leaflet_tile_layer_attribution, that can be configured in the hue.ini file:

1
2
3
[desktop]
leaflet_tile_layer=http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}
leaflet_tile_layer_attribution='Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'

The values are exactly the same taken from the Leaflet providers demo.

Et voila, when we restart Hue, we’ll have the world imagery in every app that uses maps!

Screenshot 2016-07-18 21.26.53

If you have any questions, feel free to comment here or on the hue-user list or @gethue

Hue Team

Reply all
Reply to author
Forward
0 new messages