Needs review
Project:
Leaflet
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Jan 2013 at 13:20 UTC
Updated:
11 Feb 2018 at 00:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
int_ua commentedI need the same feature. Trying to implement it.
Comment #2
int_ua commentedI've added the field and it works as expected. I was expecting Leaflet would add the id to markers. But I cannot even find it in docs at http://leafletjs.com/reference.html
How do we use it?
Comment #3
joachim commentedPatch works great.
Here's a reroll from the root of the project folder. I'm going to mark this RTBC, since I've not made any code changes to the patch.
> I was expecting Leaflet would add the id to markers.
They don't seem to get added to the HTML in any way -- I was expecting them to show up in CSS classes, as perhasp you were too.
However, this JS code shows that the markers in the map are indexed by the ID field:
(where 0 is the number of the map on the page.)
Comment #4
rdeboer@nbchip:
The feature you talk about is known as "cross-highlighting" and is available out of the box and without you doing any programming in IPGV&M, http://drupal.org/project/ip_geoloc.
You can also see it in live action here: http://regionbound.com/coffee-prices-across-melbourne
Enable IPGV&M but also keep Leaflet and your current View enabled. Then for the current View format select "Map (Leaflet API, via IPGV&M)" rather than "Leaflet Map" and you'll see a configuration panel with lots of features not available in Leaflet-by-itself, including your cross-highlighting.
Rik
Comment #5
jenlamptonThe patch didn't apply cleanly for me to the 7.x-1.x-dev branch. Rerolled.