ThinkGeo.com    |     Documentation    |     Premium Support

ZoomLevel Default Style

Is there an easy way to check if the default style on the zoom level is enabled i.e. the value was explicitly set as opposed to them being the default values supplied. When the ZoomLevel is created.



Clava, 
  
 There is a collection property in ZoomLevel called “CustomStyles”. If the CustomStyles.Count equals to 0, which means you didn’t add any custom styles, the zoomlevel will use the default ones. Otherwise the zoomlevel will use the customStyles and skip all the default ones. So checking if the CustomStyles.Count equals to 0, you can get if the default style is enabled.  
  
 I am not sure if I answered your question as I didn’t quite understand the second part of your message. If you still have any queries please let me know more about that part. 
  
 Ben