Problem/Motivation
When trying to create a new custom map. for example

and after i save the configuration i get the message that The configuration options have been saved but the custom map not saved:

Steps to reproduce
- Install the module and enable it
- Go to admin/config/system/leaflet-more-maps create a new custom map and check some layers
- Save configuration
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | leaflet_more_maps-fix-custom-maps-3198039-1.patch | 3.42 KB | berramou |
| Screenshot 2021-02-11 at 21.13.41.png | 315.17 KB | berramou | |
| Screenshot 2021-02-11 at 21.09.43.png | 266.21 KB | berramou |
Comments
Comment #2
berramou commentedComment #3
poker.ca commentedPatch #2 fixed this issue for me when applied to version 2.1.0 - thank you!
Comment #5
rdeboerAnother nice patch. Thanks @berramou!
Comment #6
rdeboerComment #7
berramou commentedWelcome @RdeBoer, i'm glad i could help :)
If you need help for maintain this module let me know!
Comment #8
rdeboer@berramou
I've made you co-maintainer.
Comment #9
berramou commentedThank you @RdeBoer !
Comment #10
rdeboer@berramou -- no worries. Now next time you fix a bug for all of us, you don't have to wait a month before I see it and apply the patch!
Comment #11
berramou commentedYeah sure, i guess we should create new release contain those fixed issues ?
Comment #12
berramou commented@RdeBoer new release 2.1.1 with those fixes published!
Comment #13
berramou commentedComment #14
rdeboer@berramou Thank you!
Comment #15
ressaWhere can I use a custom map and is it documented somewhere?
Comment #16
berramou commentedHello @ressa, you can use custom maps in widget field, if you have for example field (field_geofield) of type geofield, if you have the Leaflet More Maps module installed, Go to manage display of your content / type or entity choose the Leaflet Map widget you will find your custom maps in the widget settings.
Comment #17
ressaThanks for a fast reply @berramou! This is really strange, but all of a sudden I see my custom map under "Leaflet Map Tiles Layer". I tried everything, but it didn't show up, until now for some reason ... very odd. I cleared caches and everything, but maybe restarting DDEV was the missing piece of the puzzle. Anyway, it now works, and that's what counts.
It does seem like the custom maps switcher may conflict with the "Leaflet Demo page"? See #2819431-4: Document how custom maps and layer switcher works.