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
Comments
Post a Comment