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.
Hey there,
first I want to thank you for this really great module! It works perfectly!
But I have one question: Why is Leaflet needed to install the module. On my page I use OpenLayers and have no need for Leaflet.
Thank you!
Dirk
Comments
Comment #2
RdeBoerHi Dirk,
It's because of this:
In other words, while the Leaflet maps aren't necessarily used, the Leaflet module has a handy utility function to process geofields.
I never got round to doing the @todo !
Rik
Comment #3
Dirkozoid CreditAttribution: Dirkozoid commentedHi Rik,
sorry, I missed your answer. Thank you for your reply!
Best
Dirk
Comment #4
RdeBoerNo worries. You're welcome.
Rik
Comment #5
Joel MMCC CreditAttribution: Joel MMCC commentedDoes OpenLayers have a similar utility function? If so, then would it not be possible to either detect which is present and call that, or provide an Admin setting specifying which to use, and call the appropriate function there? That way you don’t have to re-invent the wheel and roll your own.
I see that OpenLayers does have functions for parsing GeoJSON.