ThinkGeo.com    |     Documentation    |     Premium Support

MapView - On Click on Layer and show additional data

road

The picture presents road sections using GeoCollection .
I have a question how to add function that after clicking on specyfic layer show additional parameters from database about clicked road section. Is it possible to show on map? Could you link me examples?

Thanks for answer.
Paul

Hi Paul,

You requirement is click on map, then did spatial query based on the clicked coordinate and shows information about it.

Here is a sample collection for our Blazor version: https://github.com/ThinkGeo/HowDoISample-ForBlazor

I think you can view it and find how to implement, for example you can know how to handle click event and do spatial query based on it from this sample: Find nearby places

I hope that’s helpful.

Regards,

Ethan