How do I create buttons in the infowind on the marker with Google Maps api V3?

Asked 2 years ago, Updated 2 years ago, 55 views

I am creating a web application on Google map api.I'm thinking of developing an app that allows me to search within a certain range in the place library and create my own directions by searching for routes with hits.

So I'd like to add a button to the infowind displayed on the marker and register it as a transit point, but I can't find a way to add a button to the infowind.

Please let me know the basic one.

javascript html5 api google-maps

2022-09-29 22:21

1 Answers

How about setting it up on an InfoWindow class constructor?

var infowindow=newgoogle.maps.InfoWindow({
    content: '<input type="button" value="click!"/>'
});


2022-09-29 22:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.