Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I would like to add around markers a circle with a defined radius in kilometers (3 km) that would respect its radius when zooming. I saw some code when searching the web, but not related to a Drupal module.
My support request seems a bit like #1693322: Possible to add a radius overlay centered on a Gmap marker?, but this one is for GMap Module and is not resolved.
Is there anything possible with OpenLayers ?
Thanks
Comments
Comment #1
manojsaini CreditAttribution: manojsaini commentedHaving that feature in OL will be great.
Comment #2
krem CreditAttribution: krem commentedYep, I do need that as well... If anybody find a way through javascript, please share :)
Comment #3
puppyman CreditAttribution: puppyman commentedI need this as well! Tried doing it through JS using the openlayers addLayer method, but consistently got "Object has no method addLayer", or similar results, trying it a multitude of ways. If anyone has some JS code that worked for them, that would be awesome!
DS
Comment #4
ikeigenwijs CreditAttribution: ikeigenwijs commentedany pointer on where this could be achieved in code, a hook?
I probably need to give this a go in the near future.