web - Is it possible to customize radius for a feature in Mapbox [html]? -


i trying have icons circles instead of squares using web-implementation of mapbox. there doesn't seem radius property?

since you're using mapbox.js, can use l.circle add circle measured in meters or l.circlemarker add circle measured in pixels.

assuming have map instantiated , assigned variable map, you'd call:

l.circle([10, 0], 200).addto(map); // 10=latitude, 0=longitude, 200=meters 

or

l.circlemarker([10, 0], 200).addto(map); // 10=latitude, 0=longitude, 200=pixels 

this documented on leaflet's , mapbox's sites.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -