Hello,
Probably a really simple fix but I can't figure out why my map markers aren't loading dynamically.
Here is my razor code.
<RadzenGoogleMap Data=@libertyBizList Style="height:430px;" Zoom=@zoom Center=@startingPosition MapClick=@OnMapClick MarkerClick=@OnMarkerClick />
In code I THINK I am creating the markers list properly but clearly I'm doing something wrong.
//load map data
zoom = 4;
startingPosition = new GoogleMapPosition() { Lat = 40.0000, Lng = -95.0000 };
var den = new RadzenGoogleMapMarker { Title = "Denver", Label = "Denverz", Visible = true, Position = new GoogleMapPosition { Lat = 104.9903, Lng = 39.7392 } };
libertyBizList.Add(den);
I'm just trying to get a marker to load. Of course once this is working I will load hundreds of markers from a datasource.
BTW yes if I manually add a marker in razor it will show.
Any input would be greatly appreciated.
TIA