Add custom data to marker
-
Hi !
First, thanks for your plugins, it’s really great !I generate markers dynamically on Map with Custom Posts.
$marker = '[leaflet-marker iconClass="fas fa-map-marker" lat="'.$lat.'" lng="'.$lng.'"]'.$content.'[/leaflet-marker]'; print(do_shortcode($marker));
My question : is there a way to attach custom data to marker as an ID ?
I need to differenciate them in javascript for some content manipulations
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add custom data to marker’ is closed to new replies.