Пример #1
0
        public void AddLocationMarker(GoogleMapLocation location, string markerImageURL = null, string Description = null, bool setascenter = true, bool bounce = true, Point markeranchor = new Point(), double radius = 0)
        {
            MarkerList.Add(new GoogleMapMarker(location, Description)
            {
                IconBounce        = bounce,
                SetAsCenter       = setascenter,
                ImageUrl          = markerImageURL,
                MarkerAnchorPoint = markeranchor,
                Radius            = (int)radius
            });

            //reload the map
            Reload();
        }
Пример #2
0
        public GoogleMapMarker(GoogleMapLocation loc, string description = null)
        {
            this.Location = loc;

            if (description != null)
            {
                this.Description = description;
            }
            else if (loc == null)
            {
                this.Description = loc.ToString();
            }
            else
            {
                this.Description = "";
            }
        }