Variable markers is an array that will hold all markers (point and circle around it) that we drawn on the map by simply clicking on the map. Variable centerpoint holds the lat/lon where the map will be centered. We declare a variable to refer to our map as we build it. We initialize our application using jQuery like so: $(document).ready(function() We will refer to this in Javascript file. The important part is the tag with id of map-canvas. The code is also available on and a full screen version is available also on. ![]() Feel free to download map-buffer-example.js to create your own example. Feel free to click on the map to create a marker with 20 km radius/buffer around it. The final result is available on Make a 20 km radius/buffer page.
0 Comments
Leave a Reply. |