mcguffin / acf-openstreetmap-field

WordPress ACF Field for OpenStreetMap
https://wordpress.org/plugins/acf-openstreetmap-field/
GNU General Public License v3.0
107 stars 22 forks source link

render tiles issue when using acf in gutenberg editor #14

Closed giuscia closed 5 years ago

giuscia commented 5 years ago

https://github.com/mcguffin/acf-field-openstreetmap/blob/d16fd2965661d343d0e3d676a4d7d304ff273654/assets/js/acf-osm-frontend.js#L4316

add 'load' event to solve the issue: onOff(window, 'resize load', this._onResize, this);

mcguffin commented 5 years ago

Hi, Thanks for letting me know! the code you mentioned is part of the leaflet library (3rd party). The plugins source js lives in https://github.com/mcguffin/acf-field-openstreetmap/tree/master/src/js

Anyway, leaflet was to 1.5.1 in the latest release, and I couldn't reproduce your issue. Please feel free to check again and close this issue, if it works.