Configuration: Added menu entries in configuration panel for adding custom maps and icons to be re-used by content types and views. Does not support multiple layers yet (working on that and some other features).
Map merging: Separate geofields with the same underlying map can be shown on the same map instance (and can be distinguished using different markers). Example: Have a HQ geofield and a multivalued regional offices geofield, all will be shown on the same map with different pins. Also supports multivalued textfield for popup.

| Comment | File | Size | Author |
|---|---|---|---|
| #6 | leaflet-settings-1446418.patch | 37.82 KB | hse |
| #1 | leaflet-settings.patch | 33.14 KB | hse |
| leaflet_results.png | 509.89 KB | hse | |
| leaflet_display.png | 24.38 KB | hse | |
| leaflet_config.png | 25.7 KB | hse |
Comments
Comment #1
hse commentedForgot to git add leaflet.settings.php in patch.
Comment #2
dasjowow, big patch here.
sorry i can't review functionality right now, just noting that your patch contains various coding-style errors.
make sure that you follow coding standards. helpers available: Dreditor, PAReview.sh and Coder.
Comment #3
pribeh commentedWicked. I'm going to test this tomorrow. Thanks for jumping on this by hse.
Comment #4
pribeh commentedI got several failed hunks applying patch:
Comment #5
hse commenteddasjo & all: I'll try to clean up the style to follow Drupal standards. Maybe I can split it in smaller features like the map merging etc. Unfortunately I developed it just before levelos added support for icons, so I had to re-adapt and lost some momentum...
pribeh: I just tried it and was able to apply it to 7.x-1.x without failures:
git clone --branch 7.x-1.x http://git.drupal.org/project/leaflet.git
git apply leaflet-settings.patch
(there are some whitespace warnings though).
Comment #6
hse commentedOk here we go. Cleaned up style violations, checked with Coder on show at or above minor, no remarks.
Comment #7
guictx commentedWorks great here!
Compatibility with the views submodule - http://drupal.org/node/1338326 - would be great.
Also, custom icons for taxonomy terms.
Thanks.
Comment #8
dan_metille commentedAgree with @guictx about views submodule compatibility.
Any commit soon?
Comment #9
dasjoComment #10
arosboro commentedpatch in #6 does not apply cleanly to 7.x-1.x dev. It would be nice to be able to add custom markers per content/type or taxonomy term
Use git checkout e57f585f257e47b12cfce8a7010eed7883f64ccb to apply the patch
Comment #11
revagomes commentedI'm not sure if this patch covers custom markers per field like term reference field for example so here goes a link to a path I posted that can be useful here also:
#1812748: How do I create a Leaflet view with custom icons per field criteria?
Comment #12
levelos commentedI don't even know if this is still applicable, but it needs work regardless.