the beauty of mapping


Kode Iklan Disini

Thursday, April 15, 2021

Parallax Map Markers


Leaflet.Parallax.Marker is a plug-in for Leaflet.js that allows yous to create map markers alongside a parallax effect. The plug-in makes the markers move, when yous pan the map, at a dissimilar speed to the basemap.

Leaflet.Parallax.Marker comes alongside 2 demo maps. One shows the parallax outcome added to house labels. Four dissimilar sizes of house labels are used inwards the demo. Each of the 4 dissimilar sized labels is given a dissimilar 'parallax offset' together with then that they seem to deed independently of each over. The outcome is that the house labels accept a parallax outcome inwards relation to the basemap.

The instant demo uses clouds every bit the map markers. This creates a map alongside clouds that seem to float over the basemap when yous pan around.