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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

itamair’s picture

Issue summary: View changes

cross reference with leaflet_markecluster module update

RdeBoer’s picture

Thanks for the analysis and the patch Italo!
Looks like you've got a solution there.
Will revisit soon and commit.
Rik

RdeBoer’s picture

Issue summary: View changes

update

RdeBoer’s picture

Title: (Little) Problem with two Leaflet Map (more than one …) on the same web page » Problem with marker tags when more than 1 Leaflet Map on the same web page
Issue summary: View changes

"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!

RdeBoer’s picture

Status: Active » Closed (outdated)