Hello!
I try to use the SimpleMarkerOverlay and I can add markers and I can add individual popups to the markers. But when I try to add an individual context menu to a marker, I get a null reference exception on loading the view.
overlays.SimpleMarkerOverlay(
“SMO”
)
.Markers(markers =>
{
markers.Marker(10.88555, 48.36666,
new
ThinkGeo.MapSuite.MvcEdition.WebImage(Url.Content(
"~/Content/images/MyIcon.png"
)))
.Popup(p =>
{
p.Height(200);
p.ContentHtml(
“This is a popup box”
);
});
.ContextMenu(m =>
{
m.Width(150);
m.MenuItems(mi => mi.ContextMenuItem(
“Context Menu Item!”
));
});
});
When I comment the .ContextMenu lines out, then the view loads with no errors.
Any idea?
Thanks
Karsten
PS: Can someone please explain what’s the generally difference between a SimpleMarkerOverlay and and InMemoryMarkerOverlay?