Closed (fixed)
Project:
Leaflet
Version:
8.x-1.0-beta17
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2018 at 01:36 UTC
Updated:
19 Dec 2018 at 03:54 UTC
Jump to comment: Most recent
Comments
Comment #2
itamair commentedThe new 8.x-1.0-beta18 release added the following hooks:
- hook_leaflet_views_feature_alter: Alter Leaflet View Style Point / Marker definition;
- hook_leaflet_default_map_formatter_alter: Alter the Leaflet Map Default Formatter settings;
- hook_leaflet_map_view_style_alter: Alter the Leaflet Map View Style settings;
by which it is possible to alter (and customize) the Leaflet Map settings, server side, before initializing it in js.
But you would be in charge to get the current user location (with server side user geolocation).
There is no logic implemented in the module (and it is not in my roadmap) to filter the initial markers depending on the windows bounding box extension.
At the same time you can interact and get access to the Leaflet map object using jQuery's trigger method (@see leaflet.drupal.js, #73)
Comment #3
itamair commented