How to add combobox and button to info area on google map?

I am currently developing an application in which I have to show infoWindow in a click event on the map itself.

My question is that I want to show the button, as well as the combo box in this info window. How can i do this?

+3
source share
2 answers

You need to add a custom UIView to your MKMapView and suppress the default MKAnnotation view. Your custom UIView may include the controls you want in the leader.

You may find the following useful:

, , ( subview). , . , callout ( infoWindow) iPhone.

Edit

Ok. , , , - -, API Javascript Google Maps?

. GMarker openInfoWindow, , . HTML-, -. :

<input type="checkbox" name="vehicle" value="Airplane" />
<input type="button" value="Blah" />
+1

content InfoWindow?

myWindow = new google.maps.InfoWindow({
    content:'<input type="checkbox" name="vehicle" value="Airplane" /><input type="button" value="Blah" />',
});

myWindow.open(map, marker);
0

Source: https://habr.com/ru/post/1730850/


All Articles