I would like to implement a function that highlights polygons as you mouse over them. Just like this:
http://bl.ocks.org/javisantana/8313604
with the added function that it will highlight multiple polygons if they are overlapping. The code in the example above works fine, but I can't get it to work with my data, and it's driving me crazy to figure out why. Even if I simply copy that code but paste in a vis.json from my account, making sure it is public or private with link, it still will not work. There is no error, and my debug message show that it is correctly loading the geojson features from the sql query, getting through the featureOver function, fine... but it does not add the highlight geometry to the map. And further, the cursor does not change based on any interaction. So it is weird. Is there something different about the underlying datasets, or the accounts?
p.s. I know there are 2 or 3 similar questions going back a few years but I studied them closely and have not been able to progress. Any help will be very appreciated!
أكثر...
http://bl.ocks.org/javisantana/8313604
with the added function that it will highlight multiple polygons if they are overlapping. The code in the example above works fine, but I can't get it to work with my data, and it's driving me crazy to figure out why. Even if I simply copy that code but paste in a vis.json from my account, making sure it is public or private with link, it still will not work. There is no error, and my debug message show that it is correctly loading the geojson features from the sql query, getting through the featureOver function, fine... but it does not add the highlight geometry to the map. And further, the cursor does not change based on any interaction. So it is weird. Is there something different about the underlying datasets, or the accounts?
p.s. I know there are 2 or 3 similar questions going back a few years but I studied them closely and have not been able to progress. Any help will be very appreciated!
أكثر...