How to 'filter' a district by clicking on it in Leaflet?

المشرف العام

Administrator
طاقم الإدارة
I have created a basic layer of districts on a background google streetmap on QGIS. Using the qgis2leaflet plug in, I'm able to render a webpage of the same. I want the web product to be such that when a user clicks on a particular district (layer), it gets highlighted (to show that it is the district that has been 'selected') , zoomed in and displays the relevant information from the atribute table. How do I enable this filtering+zooming capability? (P.S: I read that the 'map events' funtionality in leaflet is the way to do it....but where exactly do I define these map events from QGIS desktop?)Sorry if my question is stupid ......I'm new to geomapping softwares



أكثر...
 
أعلى