public void Unregister(GoogleMapsView map) { if (_activeMaps.Contains(map)) { _activeMaps.Remove(map); } }
public void OnShow() { Dismiss(); _map = new GoogleMapsView(CreateMapViewOptions()); _map.Show(RectTransformToScreenSpace(rect), OnMapReady); }
public void Register(GoogleMapsView map) { if (!_activeMaps.Contains(map)) { _activeMaps.Add(map); } }
void Dismiss() { if (_map != null) { _map.Dismiss(); _map = null; } }
/// <summary> /// Performs a chain of operations to prepare a map, before it's shown /// </summary> public override void InitializeMap() { // Perform a basic configuration, and make a map of it GoogleMapsOptions options = CreateMapViewOptions(); map = new GoogleMapsView(options); map.Show(RectTransformToScreenSpace(rect), OnMapReady); }
void Start() { var cameraPosition = new CameraPosition( new LatLng(-15.7964211f, -47.8898464f), 11, 0, 0); var options = new GoogleMapsOptions() .Camera(cameraPosition); _map = new GoogleMapsView(options); _map.Show(RectTransformToScreenSpace(rect), OnMapReady); }
void InitMap() { map = new GoogleMapsView(CreateMapViewOptions()); map.Show(RectTransformToScreenSpace(MapView), OnMapReady); }
static void SetApiKeyOnlyIOS() { const string apiKey = "YOUR_API_KEY_HERE"; GoogleMapsView.SetIosApiKey(apiKey); }