Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Azure maps pin color is wrong

Using Azure.Maps.Rendering I am setting the pin and label colors. The label color works fine. But the pin color, while it does change based on the setting, does not match the setting. For example, for the following code:

var pushpinSet = new ImagePushpinStyle(new List<PushpinPosition>() { position })
{
    PushpinScaleRatio = 0.8, //1.2,
    PushpinColor = Color.Red,
    LabelColor = Color.Green,
    LabelScaleRatio = 10 //18
};

I get the map:

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

That’s not red. Any idea how to get this to work?

>Solution :

This unfortunately appears to be a known bug in the SDK at this time.

Currently, in azure-sdk-for-net/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePushpinStyle.cs, the pushpin color information is extracted, but unfortunately the alpha value is also used for the blue component, instead of the blue value…

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading