Dear all, Here is what I want to do. I have regions in a country and subregions within those regions. I need to make a leaflet visualization so that when I hover over a point in the map, 2 things should happen : 1. The entire region boundary should be highlighted. 2. The tooltip should show the name of the subregion and the region. I have 2 shapefiles,one for region and one for subregion. I can use one at a time but requirements need inputs from both the shapefiles. I asked this query,along with a minimal working example here : https://stackoverflow.com/questions/48924514/using-data-from-2-shapefiles-with-leaflet-in-r?noredirect=1#comment84855712_48924514 I did not receive any replies so I am asking this query once again here. Best Regards, Ashim.
Making a leaflet visualization, using 2 shapefiles
3 messages · Ashim Kapoor, David Hine
1 day later
An HTML attachment was scrubbed... URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20180311/f2205354/attachment.html>
1 day later
Dear David, Many thanks for your reply. Alright, I will take this discussion forward on a leaflet discussion forum. Best Regards, Ashim On Sun, Mar 11, 2018 at 7:56 AM, David Hine <David.Hine at landandwater.com.au> wrote:
Hi Ashim This is really a leaflet question. You can explore options at the leaflet website: http://leafletjs.com/plugins.html#markers--renderers A capable javascript developer could help you solve the problem. There are probably several strategies. This one might be a start: https://github.com/jacobtoye/Leaflet.iconlabel regards David On 9/03/2018 9:30 PM, Ashim Kapoor wrote: Dear all, Here is what I want to do. I have regions in a country and subregions within those regions. I need to make a leaflet visualization so that when I hover over a point in the map, 2 things should happen : 1. The entire region boundary should be highlighted. 2. The tooltip should show the name of the subregion and the region. I have 2 shapefiles,one for region and one for subregion. I can use one at a time but requirements need inputs from both the shapefiles. I asked this query,along with a minimal working example here : https://stackoverflow.com/questions/48924514/using-data-from-2-shapefiles-with-leaflet-in-r?noredirect=1#comment84855712_48924514 I did not receive any replies so I am asking this query once again here. Best Regards, Ashim. [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing listR-sig-Geo at r-project.orghttps://stat.ethz.ch/mailman/listinfo/r-sig-geo -- [image: Land and Water Management logo] * David Hine* Land and Water Management PL 29 Pacific Pde <https://maps.google.com/?q=29+Pacific+Pde+%0D%0A++++++++++++++++Mission+Beach,+Qld+4852+%0D%0A++++++++++++++++Australia&entry=gmail&source=g> Mission Beach, Qld 4852 Australia m: 0429 886 146 +61 429 886 146 t: (07) 4015 3470 +61 7 4015 3470 Land and Water Management PL <http://www.landandwater.com.au> _______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo