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

StijnStroobants created an issue. See original summary.

m.stenta’s picture

Category: Task » Support request
Status: Active » Closed (fixed)

Take 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.