15
Views
3
Comments
[Google Maps Web] Google Maps Web - Circle Events
google-maps-web
Web icon
Forge component by Labs
Application Type
Traditional Web

Hi, does anyone have detailed documentation on how to add circle events on this component? I understand this does not have that capability yet so I would like to know how to do that manually. 

Champion

Hi,

As this component use java script API for map and you also mentioned not provide adding circle functionality. So I would suggest you can use direct Java Script API to add circles on the map. Can refer below this URL : https://developers.google.com/maps/documentation/javascript/examples/circle-simple

regards

Hi @Vikas Sharma,

Adding Circle Markers on the Map is available on the Component. What's missing is how to add click events on those circles. No luck in searching, though on how to do this. 

Regards,

Champion

Hi,

You are right there is not any standard click event for the circle object. I guess can try with java script to achieve this.

From above shared link, we have circle constructor and object. In circle object we can try at add event listener like below :

circle.addListener("click", () => {    

// write your logic here.

  });

regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.