leaflet-plugin icon indicating copy to clipboard operation
leaflet-plugin copied to clipboard

Circle around the geocoded place

Open ilyankou opened this issue 7 years ago • 1 comments

I developed a feature to draw a circle with a specified radius around the geocoded place upon searching for @jackdougherty's leaflet-maps-with-google-sheets, and I am wondering if it's something that can be added to the main repo. Its main purpose is to be able to easily detect markers that lie within a certain distance from the place.

screen shot 2017-03-22 at 19 24 53 screen shot 2017-03-22 at 19 25 06

It requires two additional parameters to geocoder: circle (true/false), and circleRadius (number, in miles).

screen shot 2017-03-22 at 19 32 45

ilyankou avatar Mar 22 '17 16:03 ilyankou

Hi @ilyankou, thanks for the suggestion.

I think you've developed a really interesting application with the geocoder, but I'm not certain that it has much utility for other geocoder users outside of your use case. We want to keep our plugin scoped fairly tightly to Mapzen Search functionality, and the circle might confuse users into thinking it might mean something about search accuracy. (See, for example, the accuracy indicator from the locatecontrol plugin, which looks very similar.)

Perhaps it would be best to showcase the circle as a demo, instead? We keep a directory of examples which includes examples of how the geocoder plugin can be augmented with more advanced integrations and additional features.

louh avatar Mar 28 '17 01:03 louh