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.
Views GeoJSON 7.x-1.x-dev
OpenLayers 7.x-2.x-dev
Perhaps this more belongs in OL but since this module is the new kid on the block, it might need some attention here too. During my tests of this module I swapped out the traditional OL data layer way of getting GEO-data from geofield. This module works great :) but "zoom to Layer" in OL does not seems to work. The map falls back to 'Initial Map View' in OL.
Comment | File | Size | Author |
---|---|---|---|
#2 | openlayers-zoomtolayer_geojson-1497166-2.patch | 883 bytes | jeffschuler |
Comments
Comment #1
jeffschulerThanks for catching this!
At a glance it looks like openlayers_behavior_zoomtolayer.js needs a new handler for GeoJSON layers.
Moving it over to the OL queue...
Comment #2
jeffschulerWe should be able to just do this:
but zoomtolayer's not working for KML either. See #1627032: Zoom to layer doesn't work anymore when layer type is KML..
Comment #3
jeffschulerThis is working for me, after applying my patch in #1627032-2: Zoom to layer doesn't work anymore when layer type is KML..
Comment #4
PolWorking for me too.
Comment #5
PolThanks, committed.
http://drupalcode.org/project/openlayers.git/commit/89a202c