346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 |
356 |
73 |
74 |
75 |
$(my_map_div).trigger('acf-osm-map-added');
on each newly added map.
275 | - Upgrade LeafletJS to 1.6.0
276 |
277 | = 1.1.4 =
278 | - Upgrade Leaflet Providers to 1.9.0
279 | - Upgrade Leaflet Control Geocode to 1.10.0
280 | - Fix: Redraw maps when they become visible
281 |
282 | = 1.1.3 =
283 | - UI: Better formatting for automatic marker labels
284 | - Fix: Map controls zindex in Block-Editor
285 | - Fix: Adding markers not working on mobile devices
286 |
287 | = 1.1.2 =
288 | - Fix: PHP Strict Standards message
289 |
290 | = 1.1.1 =
291 | - Fix: Required Field behaviour – "required" means now "must hava a marker"
292 |
293 | = 1.1.0 =
294 | - UI: Usability Improvements
295 | - Tested: Verfied Compatibility with Widgets, Block-Editor, Frontend Form
296 | - Stored data pretty much like google map field
297 | - Code: Refactored JS
298 |
299 | = 1.0.1 =
300 | Convert Values from ACF Googlemaps-Field
301 |
302 | = 1.0.0 =
303 | Initial Release
304 |
--------------------------------------------------------------------------------
/templates/admin.php:
--------------------------------------------------------------------------------
1 | 'leaflet-map',
11 | 'data-height' => $field['height'],
12 | 'data-map' => 'leaflet',
13 | 'data-map-lng' => $osm_map['lng'],
14 | 'data-map-lat' => $osm_map['lat'],
15 | 'data-map-zoom' => $osm_map['zoom'],
16 | 'data-map-layers' => $osm_map['layers'],
17 | 'data-map-markers' => $osm_map['markers'],
18 | ];
19 |
20 | ?>
21 |