When switching to 9.0 we have so far ignored the messages on our Styles that say they are obsolete and we should use the WorldMapkit styles. I have looked in the 9.0 HowDoI sample for guidance on how to use the new styles, but didn’t see any examples. Where can I find how to use the new worldmapkit styles? Specifically the new point styles.
Obsolete Styles
Hi Jake,
I think you can ignore those obsolete styles if you want to keep your original styles, as we have no plan to remove those styles in the later versions. We give this message is just want you know there are some better looking styles.
For the WorldMapKitPointStyles, as you see there is an icon path parameter passing in those helper methods, the icon path towards the worldmapkit icon dataset where we can find in World Map Kit SDK source.
C:\Program Files (x86)\ThinkGeo\Map Suite 9.0\Map Suite World Map Kit SDK\Current Version\World Map Kit SDK Source\OsmWorldMapKitLayer\Icons
Thanks,
Troy
Hi Troy,
This is clearly an incorrect use of the Obsolete attribute. From Microsoft “Marking an element as obsolete informs users that the element will be removed in future versions of the product.” The message displayed is documented as “The string should note that the attribute target is obsolete and, if possible, provide some workaround or programmatic alternative”
In this case you are neither removing the old styles nor providing similar functionality in the WorldMapKitStyles ( where are the replacements for City* point styles as an example )
So now our only alternative is to continue to use the old styles and to insert hundreds of ‘#pragma warning disable 0618’ and ‘#pragma warning restore 0618’ pairs to supress the warnings and get a ‘clean build’
Please rethink this.
Regards
John
Hi John,
Thanks for reminding and I agree with you.
I’ve forwarded this to our manager and I think we will make some discussions on whether we will remove the obsolete attribute in the 9.0 daily build.
Thanks again and sorry for any inconvenience.
Troy