Widget HTML Atas

Truesize For Leaflet


It is real tardily to practise a province size comparing map similar The True Size Of using the Google Maps API. Google's Maps API allows yous to define polygon shapes every mo both draggable too geodesic. This agency if yous add together a province polygon cast to a Google Map the map's users tin drag the cast unopen to the map too 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 cast both draggable too responsive to the map projection. Therefore Webkid has created a plug-in for Leaflet which allows yous to add together draggable polygons that resize automatically depending on the score of latitude.

Leaflet Truesize includes links to download the plugin too an explanation of how it should endure used to practise a size comparing map. It likewise contains an instance map which allows yous to drag Republic of Republic of India too United Mexican United States on a map to compare their size amongst other countries unopen to the world.