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.
Please find attached a patch to enable OpenLayers to center the map by default on the location provided by this module.
This is similar to a behavior that comes with OpenLayers, but is more flexible, in that it supports more than just HTML5 geocoding.
Comment | File | Size | Author |
---|---|---|---|
add-openlayers-behavior.patch | 3.87 KB | noahlively | |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedpatch no longer applies cleanly and had to manually add
rejected:
function ip_geoloc_ctools_plugin_directory($module, $plugin) {
- if ($module == 'ctools' || $module == 'panels') {
+ if (!empty($plugin)) {
Comment #2
RdeBoerI thought I had already applied this. Clearly not... Hope to do this soon.
Comment #3
RdeBoerRelated solution: https://www.drupal.org/sandbox/rdeboer/2464101