Closed (fixed)
Project:
Leaflet
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2016 at 13:03 UTC
Updated:
7 Jul 2018 at 15:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
greenskunkZoom options show in the options in a geofield display settings in the corresponding content type?
/admin/structure/types/manage/[CONTENT-TYPE]/displayComment #3
joco_sp commentedI am using it in Views.
Format:Leaflet is not working for me, so I use Format:Leaflet map (old) and there is no option to select the zoom.
Comment #4
Carlos Miranda Levy commentedI can confirm (although I'm using 8.x-1.0-beta1) there is no zoom option in Views.
The Views auto-zooms to display all plotted points though.
Comment #5
mrpeanut commentedComment #6
PhilippVerpoortAny updates on this?
Comment #7
benjamin.merkley commentedIm experiencing a similar issue
Comment #8
paul_canning commentedI am also using 'Leaflet (Old)' as the normal Leaflet format doesn't seem to work.
Can we please get zoom levels, and also the ability to add a default location when no pins are shown (in the case where exposed filters are used).
Comment #9
PhilippVerpoortI have created a patch which should provide this feature.
Comment #10
PhilippVerpoortI am also providing a second patch that should provide the ability to set the centre of the map for Leaflet maps created with Views, as requested by @paul_canning in #8.
This patch is building up on the one in #9 (the diff has been created against that commit). This patch is a bit more complicated and less straight-forward than the one in #9, as I also had to make changes to the
leaflet.drupal.jsfile. Furthermore, the text field that allows users to enter the centre of the map in the Views configuration page isn't very sophisticated, and I would suggest replacing it with some type of text field that is more suitable for geolocation data.I suggest the maintainer proceeds with committing patch #9 to the repository (after it has been confirmed by others that it works). The patch in #10 should also work, and I encourage everyone to test it, but I suggest the maintainer takes a closer look at the changes before committing this one as well.
Comment #12
itamair commentedLast dev and 1.0-beta8 release fixed and further enhanced this ...
Comment #13
itamair commented