See related #1903444: Javascript type error related to hidden fields using leaflet field formatters. There is a JS error when a leaflet field formatter is used, map options are added to Drupal.settings, but the target dom element is hidden or left unrendered. Will attach a patch.

Comments

onelittleant’s picture

Patch for JS error attached.

rudetrue’s picture

Thanks, applied this and it fixed the issue for me.

rudetrue’s picture

Status: Active » Needs review

Updating status, hopefully this can be committed.

simon georges’s picture

Status: Needs review » Reviewed & tested by the community

As you confirmed it works, let's update it to "reviewed and tested" ;-)

rdeboer’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (fixed)

Just checked this. This code was committed a long time ago -- Thanks onelittleant!