示例#1
0
        public Marker AddMarker([NotNull] MarkerOptions markerOptions)
        {
            if (GoogleMapUtils.IsPlatformNotSupported)
            {
                return(new Marker());
            }

            CheckIfDismissed();

#if UNITY_IOS && !DISABLE_IOS_GOOGLE_MAPS
            var options   = Json.Serialize(markerOptions.ToDictionary());
            var markerPtr = _googleMapsViewAddMarker(_mapPtr, options);
            return(new Marker(markerPtr, _mapPtr));
#endif

#pragma warning disable 0162
            var markerAJO = _ajo.MainThreadCallAJO("addMarker", markerOptions.ToAJO());
            return(new Marker(markerAJO));

#pragma warning restore 0162
        }
示例#2
0
 public ClusterItem(LatLng position)
 {
     MarkerOptions = new MarkerOptions()
                     .Position(position);
 }
示例#3
0
 public ClusterItem([NotNull] MarkerOptions markerOptions)
 {
     MarkerOptions = markerOptions;
 }