javascript - How to draw circles around markers with the specified radius value using mapbox.js -


Hello, I want to show the value of quantity with the help of a mill around the marker. Actually if the circle is big, it means that the available quantity at that place is more than the smaller circles. I am able to display the marker on the map. But I am trying out the display circles. The radius value for the circle is in the value variable. I want to convert the available quantity values ​​on the basis of the radius of the earth and then want to display the circle.

Here are the code snippets

  // var map = L.mapbox.map ('map', 'example.map-i86nkdio') var map = L.mapbox .map ('map', 'hexample.j1m1kko7') .setView ([42.274260, -83.365717], 9); (I = 0; i & lt; lats.length; i ++) {var marker = L. Marker ([lathes [i], long [i]], {icn: l.map.marker.con ({'marker-color': '# e80000'})}) .bindpop ('& lt; button class = "Trigger"> gt; + fcam [i] + '& lt; / button & gt;'). ADTO (map); L. Cerclemarker ([lats [i], long [i]], value [i]). ADTO (map); }   

Can I use polyline or polygon to display the circle because the circle marker will be created.

I had to face the same problem the same day and L. Like this type of L / C is finished.

  Marker = L. Cclecle (latlng, radius) .addTo (map);   

And place the same marker in one place. Try it!

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -