Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Showing CircleAnnotations on map #94

Open
nathan-newman6519 opened this issue Aug 21, 2020 · 0 comments
Open

Showing CircleAnnotations on map #94

nathan-newman6519 opened this issue Aug 21, 2020 · 0 comments

Comments

@nathan-newman6519
Copy link

I am seeing that CirlcleAnnotations are not showing up on the map when I define them. I followed the example outlined here for SymbolAnnotations. I then modified the HandleStyleLoaded in that example to be

private void HandleStyleLoaded(MapStyle obj)
        {
            var symbol = new SymbolAnnotation
            {
                Coordinates = new LatLng(39.251870, -84.521410),
                IconImage = MAKI_ICON_HARBOR,
                IconSize = 2.0f,
                IsDraggable = true,
                Id = Guid.NewGuid().ToString()
            };


            symbol.Title = "test title";
            symbol.TextField = "test";

            var t = new Naxam.Mapbox.Annotations.CircleAnnotation
            {
                Coordinates = new LatLng(39.250520, -84.520920),
                CircleRadius = 2.0f,
                CircleColor = Color.Aqua,
                Opacity = 1,
                IsDraggable = false,
                Title = "title",
                SubTitle = "sub title",
                Id = Guid.NewGuid().ToString()
            };


            myMap.Annotations = new[] { t };
        }

When I do that, I do not get any circle or anything on the map.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant