I am using IP Geolocations Views & Maps and Leaflet library to render a map.

After I upgraded the leaflet library from version 1.0.0-rc.1 to 1.0.1 the geolocation of the user using the "Set my Location" block doesn't work.

When you press the "Find Me" button nothing actually happens. In the console you get the following error.

Uncaught Error: Map container is already initialized.

I downgraded to the previous version and all is working so I guess there is an issue with this upgrade.

P.S: I don't know if this is a leaflet issue.

Comments

pierostz created an issue. See original summary.

RdeBoer’s picture

Hi @pierostz
Thank you for reporting.
I hope I can find time to look at this soon.
Rik

PS: when using Chrome as your browser you must be on localhost or on https... That is Google for you. Nothing to do with this module. Are you aware of this? I think you are, judging by your report, but just thought I'd mention it for others reading this...

pierostz’s picture

Yes I am aware of the secure connections issue...thanks for reminding though.

RdeBoer’s picture

Assigned: Unassigned » RdeBoer
Status: Active » Fixed

Use latest release of Leaflet (and Leaflet MarkerCluster) and you should be fine, using Leaflet JS 1.0.2

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

smurfxx’s picture

The Map container error is fixed using Leaflet JS 1.0.2 but now I have another error that blocks the initialization of the map: Uncaught TypeError: Cannot read property 'trim' of undefined