Hi Rick …
As a further development (of this: http://www.italomairo.com/geoblogcms/en/ip-locations-leaflet), I have to manage two ip_geoloc leaflet maps at the same time on the same web page (also using the leaflet_markercluster and leaflet_more_maps modules)
Once fixed another issue related to the leaflet_markercluster module (https://drupal.org/node/2038659), everything works ok, but something concerning the "ip_geoloc_leaflet_tagged_marker.js" file, as shown in the attached screenshot (browser' console.log)
It seems a matter of js upload ordering in some circumstances (in these with two maps at least).
Everything is gone (fixed) once wrapping that code in the $(document).ready(function () {} … as shown in the diff attached file.
It seems ok now, and not wrongly affecting usual use cases (with one map), thus I hope might and will be implemented soon in the next dev … (if any counter indication)
Comment | File | Size | Author |
---|---|---|---|
ip_geoloc_leaflet_tagged_marker.diff | 654 bytes | itamair | |
ip_geoloc_leaflet_tagged_marker.jpg | 343.34 KB | itamair |
Comments
Comment #0.0
itamair CreditAttribution: itamair commentedcross reference with leaflet_markecluster module update
Comment #1
RdeBoerThanks for the analysis and the patch Italo!
Looks like you've got a solution there.
Will revisit soon and commit.
Rik
Comment #1.0
RdeBoerupdate
Comment #2
RdeBoer"Everything is gone (fixed) once wrapping that code in the $(document).ready(function () {} … as shown in the diff attached file."
I tried this patch on a page that has 2 Leaflet maps, one as a Views Page display and a one as Block display.
While the JS error disappeared after applying the patch, so did the marker tags!
Comment #3
RdeBoer