Open Popup on CartoDB Layer

المشرف العام

Administrator
طاقم الإدارة
I have a cartodb viz layer (polygons) and geojson layer in a leaflet map (parcels), where the geojson layer overlaps the cartodb layer. How do I disable the interaction to the geojson polygon layer so I can get the popup on the cartodb layer to open when I click that polygon? The cartodb popup will open sometimes, but not all the time.

I think the solution is either to open the cartodb layer via the geojson with something like polygon.on('click', somefunction(){}) or to just disable interaction on the geojson polygon layer altogether, but I'm not sure if that is possible.

Thanks



أكثر...
 
أعلى