Adding Map of Tunisia with OpenStreetMap and polygon
I am trying to show the map of Tunisia at the map there is nothing shown, this my code of JavaScript: <script> $(function () { var polygon = null; var draggable = true; initialize(); function initialize() { // Create map for polygon drawing var map = L.map("map").setView([34, 9], 6); polygon = new MultiPolygon(map, $("#polygon-name").val()); // Create tunisiaMap as background L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 19, attribution: 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors', }).addTo(map); var totalLatLng = "(24.99539, 1
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.