Diese Schaltflächen werden in Android angezeigt, wenn Sie auf eine beliebige Stelle auf der Karte tippen. Allerdings ist das gleiche Verhalten in IOS nicht vorhanden.
Ich möchte, dass diese Schaltflächen auch in IOS verfügbar sind.
In IOS wird nur die Schaltfläche „myLocation“ angezeigt.
Hier ist der Codeausschnitt, den ich zum Erstellen von Map verwendet habe.
Code: Select all
GoogleMap createGoogleMap(
double latitude, double longitude, Set markers) {
return GoogleMap(
mapType: MapType.normal,
initialCameraPosition: initialPos,
zoomControlsEnabled: true,
onMapCreated: (GoogleMapController controller) {
_controller.complete(controller);
_googleMapController = controller;
},
markers: markers.isEmpty ? new Set() : markers,
);
}