Hi,
.MarkerOverlay(overlay =>
{
overlay.Name("MarkerOverlay")
.IsBaseOverlay(false)
.Columns(col => col.Add(new FeatureSourceColumn("LocationType", "INTEGER", 32)))
.ZoomLevelSet(zoomlevelSet =>
{
MarkerClassBreak classBreak0 = new MarkerClassBreak(0);
MarkerClassBreak classBreak1 = new MarkerClassBreak(1);
classBreak1.DefaultMarkerStyle.WebImage = new ThinkGeo.MapSuite.MvcEdition.WebImage(@"/App_Themes/img/Places/High Detail/48x48/Places - High Detail Headquarters.png", 48, 48);
classBreak1.DefaultMarkerStyle.WebImage.ImageOffsetX = 0;
classBreak1.DefaultMarkerStyle.WebImage.ImageOffsetX = 0;
MarkerClassBreak classBreak2 = new MarkerClassBreak(2);
classBreak2.DefaultMarkerStyle.WebImage = new ThinkGeo.MapSuite.MvcEdition.WebImage(@"/App_Themes/img/Places/High Detail/32x32/Places - High Detail Office Building 1.png", 32, 32);
classBreak2.DefaultMarkerStyle.WebImage.ImageOffsetX = 8;
classBreak2.DefaultMarkerStyle.WebImage.ImageOffsetY = 8;
MarkerClassBreak classBreak3 = new MarkerClassBreak(3);
classBreak3.DefaultMarkerStyle.WebImage = new ThinkGeo.MapSuite.MvcEdition.WebImage(@"/App_Themes/img/Places/High Detail/24x24/Places - High Detail Industrial 2.png", 24, 24);
classBreak3.DefaultMarkerStyle.WebImage.ImageOffsetX = 12;
classBreak3.DefaultMarkerStyle.WebImage.ImageOffsetY = 12;
ClassBreakMarkerStyle classBreakStyle = new ClassBreakMarkerStyle("LocationType");
classBreakStyle.ClassBreaks.Add(classBreak0);
classBreakStyle.ClassBreaks.Add(classBreak1);
classBreakStyle.ClassBreaks.Add(classBreak2);
classBreakStyle.ClassBreaks.Add(classBreak3);
classBreakStyle.ColumnName = "LocationType";
zoomlevelSet.ZoomLevel01.CustomMarkerStyle = classBreakStyle;
zoomlevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
});
})
I found that without a dummy marker class break "classBreak0" in my razor code the "classBreak1" does not show on a map.
jm.