New Truesize For Leaflet


It is real slowly to practise a province size comparing map similar The True Size Of using the Google Maps API. Google's Maps API allows you lot to define polygon shapes equally both draggable as well as geodesic. This way if you lot add together a province polygon sort to a Google Map the map's users tin drag the sort roughly the map as well as the size volition alter size depending on the shape's latitude.

In Leaflet.js at that spot is no uncomplicated method inwards the JavaScript library for making a polygon sort both draggable as well as responsive to the map projection. Therefore Webkid has created a plug-in for Leaflet which allows you lot to add together draggable polygons that resize automatically depending on the flat of latitude.

Leaflet Truesize includes links to download the plugin as well as an explanation of how it should survive used to practise a size comparing map. It too contains an instance map which allows you lot to drag Republic of Republic of India as well as United Mexican U.S. of A. on a map to compare their size alongside other countries roughly the world.
Buat lebih berguna, kongsi:
close