bozdoz / wp-plugin-leaflet-map

Add leaflet maps to Wordpress with shortcodes
https://wordpress.org/plugins/leaflet-map/
GNU General Public License v2.0
140 stars 71 forks source link

resolves #248 - adds filter for geojson on each feature #249

Open bozdoz opened 4 months ago

bozdoz commented 4 months ago

example in functions.php:

<?php

function onEachFeature($onEachFeature) {
  return "function onEachFeature(feature, layer) { console.log(feature); }";
}

add_filter('leaflet_map_geojson_onEachFeature', 'onEachFeature', 10, 3);
sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud