Hi ThinkGeo
Recently we upgraded our ThinkGeo MapSuite from 7.0 to 8.0 a licensed version.
Issue observed after up gradation is, earlier if no colors were applied on map by default the color was white now with 8.0 if no colors are applied on the map it shows white color with small black dots refer the screen shot attached
Thanks and Regards
Shirish Katti
IGC.png (40.1 KB)
Issue on MapSuite 8.0
Hi Shirish,
From the screenshot, it looks like a bug bringing by upgrade.
Would you please let us know how you set the styles? you can attach this part codes here so that we can see this issue in our end.
Thanks,
Troy
Hi Troy,
I debuged and found that this issue is indeed due to 8.0 upgrade
classBreakStyle.ClassBreaks.Add(new ClassBreak(0d, AreaStyles.NoData1));
classBreakStyle.ClassBreaks.Add(new ClassBreak(1d, new AreaStyle(GeoBrushRangeGreen)));
classBreakStyle.ClassBreaks.Add(new ClassBreak(2d, new AreaStyle(GeoBrushRangeYellow)));
classBreakStyle.ClassBreaks.Add(new ClassBreak(3d, new AreaStyle(GeoBrushRangeRed)));
Basically earlier in 7.0 version AreaStyles.NoData1 was applying white color but now it applies white color with black dots. Can you have a look at it
Thanks Again !!
Hi Shirish,
I have viewed the code, it looks the logic for AreaStyles.NoData1 haven’t been changed since 2009. Then I tested the dll 7.0.0.0, it render the same with black dots.
If you want to use a areastyle without filled black dots, please modify your code like this:
AreaStyle myNoData1 = AreaStyles.CreateHatchStyle(GeoHatchStyle.Percent80, GeoColor.StandardColors.LightGray, GeoColor.StandardColors.Black, GeoColor.StandardColors.Black, 1, LineDashStyle.Solid, 0, 0);
myNoData1.Advanced.FillCustomBrush = null;
classBreakStyle.ClassBreaks.Add(new ClassBreak(0d, myNoData1));
Regards,
Don
Hi Shirish,
I have viewed the code, it looks the logic for AreaStyles.NoData1 haven’t been changed since 2009. Then I tested the dll 7.0.0.0, it render the same with black dots.
If you want to use a areastyle without filled black dots, please modify your code like this:
AreaStyle myNoData1 = AreaStyles.NoData1;
myNoData1.Advanced.FillCustomBrush = null;
classBreakStyle.ClassBreaks.Add(new ClassBreak(0d, myNoData1));
Regards,
Don
Hi Don,
We have 7.0.0.0 in our test environment and 8.0.0.0 on dev environment, i am using the same data set on both of these environments but could see the Map behave differently
7.0.0.0 - Test - Shows map with white color only
8.0.0.0 - Dev - Shows map with white color and black dots
So, i am still not so sure that the issue is not due to 8.0 upgrade
Regards
Shirish
Hi Shirish,
We did a double-check with our source code, but seems like we didn’t do any changes to the settings of “NoData1” for a long time, everything works fine for us as well, could you provide a straight-forward sample for us to reproduce the issue you have? maybe it’s caused by some related codes.
Thanks,
Johnny