Okay so I found out what's going on.
I have to type my ObservableCollection to MapMarker and not WeatherMarker.
private ObservableCollection< MapMarker > _weatherMarkers;
public ObservableCollection< MapMarker > WeatherMarkers
{
get => _weatherMarkers;
set => SetProperty(ref _weatherMarkers, value);
}
Instead of :
private ObservableCollection< WeatherMarker > _weatherMarkers;
public ObservableCollection< WeatherMarker > WeatherMarkers
{
get => _weatherMarkers;
set => SetProperty(ref _weatherMarkers, value);
}
It should work with WeatherMarker as it derives from MapMarker. Anyway, working now.