CommunityToolkit / CommunityToolkit/dotnet
Pin does not appear on the ma running in Windows
- Dominant language
- C#
- Stars
- 3.8k
- Forks
- 400
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
I am working with net 8 I have the following code:
mapa.MoveToRegion(MapSpan.FromCenterAndRadius(new Location(41.21301, 1.73250), Distance.FromMiles(0.5)));
string cadenaSituacion = "41º 12.8 N' 001º 43.9' E";
var pin = new Pin
{
Label = cadenaSituacion,
Address = cadenaSituacion,
Type = PinType.Place,
Location = new Location(41.21301, 1.73250)
};
mapa.Pins.Add(pin);
Running the app on Mac the pin is displayed correctly, but on Windows it is not,for it to be displayed in Windows I have to change:
string cadenaSituacion = "41º 12.8' N 001º 43.9' E"
for :
string cadenaSituacion = "41º 12.8 N 001º 43.9 E"
### Regression
_No response_
### Steps to reproduce
```text
Create a map.
Add a pin with a single quote in Label and Address
```
### Expected behavior
The pin should be shown on the map as when running on Mac
### Screenshots
_No response_
### IDE and version
VS 2022
### IDE version
17.6.8 (build 400)
### Nuget packages
- [ ] CommunityToolkit.Common
- [ ] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [ ] CommunityToolkit.Mvvm (aka MVVM Toolkit)
### Nuget package version(s)
CommunityToolkit.Maui.Maps 2.0.0
### Additional context
_No response_
### Help us help you
Yes, I'd like to be assigned to work on this item
Contributor guide
Assessment
This issue has not been assessed yet.