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 using geofield and openlayer_geofield. I get it working to upload a .gpx-file and render the track on an openalyers-map.
But I cannot find a solution to autozoom on the track. I cannot see a setting for this?
Thanks,
Stijn
Comments
Comment #2
m.stentaTake a look at the Openlayers Example module's "Openlayers Geofield: Formatter map". You can probably use it as a model for your configuration.
The key is you need a "Zoom To Source" component in your map that references the Geofield source. The example demonstrates how to set that up properly.