User Tools

Site Tools


thinkgeo_style_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
thinkgeo_style_guide [2019/10/21 06:00]
tgwikiupdate [Applying Styles Across ZoomLevels]
thinkgeo_style_guide [2019/10/21 06:58] (current)
tgwikiupdate [Predefined Styles]
Line 101: Line 101:
  
 ^  Scales for ZoomLevels 1-7 ^  Scales for ZoomLevels 8-14 ^  Scales for ZoomLevels 15-20 ^ ^  Scales for ZoomLevels 1-7 ^  Scales for ZoomLevels 8-14 ^  Scales for ZoomLevels 15-20 ^
-| 1. 590,​591,​790 ​  | 8. 4,​613,​998 ​  | 15. 36,​046 ​  +| 1. 295829513.558921 ​  | 8. 2311168.074679 ​  | 15. 18056.000583  ​
-| 2. 295,​295,​895 ​  | 9. 2,​306,​999 ​  | 16. 18,​023 ​  | +| 2. 147914756.779460 ​  | 9. 1155584.037340 ​  | 16. 9028.000291 ​  | 
-| 3. 147,​647,​947 ​  | 10. 1,​153,​499 ​  | 17. 9,011   | +| 3. 73957378.389730 ​   ​| 10. 577792.018670 ​  | 17. 4514.000146 ​  | 
-| 4. 73,​823,​973 ​  | 11. 576,​749 ​  | 18. 4,505   | +| 4. 36978689.194865 ​   ​| 11. 288896.009335 ​  | 18. 2257.000073 ​  | 
-| 5. 36,​911,​986 ​  | 12. 288,​374 ​  | 19. 2,252   | +| 5. 18489344.597432 ​   ​| 12. 144448.004667 ​  | 19. 1128.500036 ​  | 
-| 6. 18,​455,​993 ​  | 13. 144,​187 ​  | 20. 1,126   +| 6. 9244672.298716 ​    | 13. 72224.002334 ​   ​| 20. 564.250018 ​   ​
-| 7. 9,​227,​996 ​  | 14. 72,​093 ​  |    |+| 7. 4622336.149358 ​    | 14. 36112.001167 ​   ​|    |
  
  
-==== Disabling Snapping ==== 
-In the Winforms Desktop Edition, not available in other editions, you have the option to disable snapping and allow the map to zoom to an unlimited number of scales. ​ It is recommended that you do not use this feature as it impact a number of performance optimization we can provide. ​ For example if disable snapping then your tile caching will not work effectively and may result in a large number of tiles being generated. ​ If you want more granulatiry then we suggest you create a set of [[Map_Suite_Style_Guide#​Custom_ZoomLevels|custom ZoomLevels]],​ detailed later in this guide, as this allows you to define a more granular set of scales. 
- 
-//The code below disables snapping to ZoomLevels in the Winforms Desktop Edition. ​ This method will not work for any other edition due to their design.// 
-<code csharp> 
-winformsMap1.ZoomLevelSnapping = ZoomLevelSnappingMode.None 
-</​code>​ 
  
 ==== Custom ZoomLevels ==== ==== Custom ZoomLevels ====
Line 122: Line 115:
  
 === Modifying Existing ZoomLevels === === Modifying Existing ZoomLevels ===
-If you plan to make slight modifications to the existing scales but plan on having less then twenty ZoomLevels total then we suggest you simply modify the ZoomLevelSet. ​ Using this method you change the Scale property on the ZoomLevels you want to adjust. ​ If you want fewer then twenty scales then simply set the unused scales to zero.  It is important to note that when you change the scales and set the new ZoomLevelSet to the associated FeatureLayers that you also ensure that map control snaps to the new ZoomLevel set.  The process of doing this is described below under [[Map Suite Style Guide#Third Party ZoomLevelSets (Google, Bing etc.)|Third Party ZoomLevelSets (Google, Bing etc.)]].+If you plan to make slight modifications to the existing scales but plan on having less then twenty ZoomLevels total then we suggest you simply modify the ZoomLevelSet. ​ Using this method you change the Scale property on the ZoomLevels you want to adjust. ​ If you want fewer then twenty scales then simply set the unused scales to zero.  It is important to note that when you change the scales and set the new ZoomLevelSet to the associated FeatureLayers that you also ensure that map control snaps to the new ZoomLevel set.  The process of doing this is described below under [[thinkgeo_style_guide#Third Party ZoomLevelSets (Google, Bing etc.)|Third Party ZoomLevelSets (Google, Bing etc.)]].
  
 //The code below creates a ZoomLevelSet with effectivly three ZoomLevels. ​ By setting the rest of the scales to zero we effectivly turn them off.  We have left off the code to turn ZoomLevel 08-20 off to save space// //The code below creates a ZoomLevelSet with effectivly three ZoomLevels. ​ By setting the rest of the scales to zero we effectivly turn them off.  We have left off the code to turn ZoomLevel 08-20 off to save space//
Line 137: Line 130:
  
 === Creating New ZoomLevels === === Creating New ZoomLevels ===
-Creating new ZoomLevels allows you to create a near infinite number of ZoomLevels to have total control. ​ In this method you create the number of ZoomLevels you want and you add these to the ZoomLevelSet.CustomZoomLevels collection. ​ During the drawing process if we detect that you have populated the collection we will ignore the predefined ZoomLevels and use the items in the collection instead. ​ It is important to note that when you use custom zoom levels that you ensure that map control snaps to the new ZoomLevel set.  The process of doing this is described below under [[Map Suite Style Guide#Third Party ZoomLevelSets (Google, Bing etc.)|Third Party ZoomLevelSets (Google, Bing etc.)]].+Creating new ZoomLevels allows you to create a near infinite number of ZoomLevels to have total control. ​ In this method you create the number of ZoomLevels you want and you add these to the ZoomLevelSet.CustomZoomLevels collection. ​ During the drawing process if we detect that you have populated the collection we will ignore the predefined ZoomLevels and use the items in the collection instead. ​ It is important to note that when you use custom zoom levels that you ensure that map control snaps to the new ZoomLevel set.  The process of doing this is described below under [[thinkgeo_style_guide#Third Party ZoomLevelSets (Google, Bing etc.)|Third Party ZoomLevelSets (Google, Bing etc.)]].
  
 //The code below create three new ZoomLevels and adds them to the CustomZoomLevelSet. ​ Normally you would use this technique to create more than twenty ZoomLevels for greater granularity. ​ If, in the real world, we just wanted three ZoomLevels we would use the code above and simple modify the default ZoomLevelSet.//​ //The code below create three new ZoomLevels and adds them to the CustomZoomLevelSet. ​ Normally you would use this technique to create more than twenty ZoomLevels for greater granularity. ​ If, in the real world, we just wanted three ZoomLevels we would use the code above and simple modify the default ZoomLevelSet.//​
Line 164: Line 157:
  
 **Popular ZoomLevelSets** **Popular ZoomLevelSets**
- ​{{section>​thinkgeo.mapsuite.core.zoomlevelset#​Inheritance Hierarchy}}+ ​{{section>​12.0/​apis/​thinkgeo.core.zoomlevelset#​inheritance_hierarchy}}
   ​   ​
-**Map Suite Desktop for WinForms** 
-<code csharp> 
-   //​Snap the map to the Bing Maps ZoomLevels 
-   //​Place this code where you setup your map control 
-   ​winformsMap1.ZoomLevelSet = new BingMapsZoomLevelSet();​ 
- 
-   //Use the scales for Bing Maps in FeatureLayer 
-   //​Place this code where you setup each layer 
-   ​shapefileFeatureLayer.ZoomLevelSet = new BingMapsZoomLevelSet();​ 
-</​code>​ 
- 
 **Map Suite Desktop for WPF** **Map Suite Desktop for WPF**
 <code csharp> <code csharp>
    //​Snap the map to the Bing Maps ZoomLevels    //​Snap the map to the Bing Maps ZoomLevels
    //​Place this code where you setup your map control    //​Place this code where you setup your map control
-   ​WpfMap.SyncZoomLevels(new BingMapsZoomLevelSet());+   ​WpfMap.ZoomLevelSet = new BingMapsZoomLevelSet();​
  
    //Use the scales for Bing Maps in FeatureLayer    //Use the scales for Bing Maps in FeatureLayer
Line 188: Line 170:
 </​code>​ </​code>​
  
-**Map Suite Web for WebForms** 
-<code csharp> 
-   //Use the scales for Bing Maps in FeatureLayer 
-   //​Place this code where you setup each layer 
-   ​shapefileFeatureLayer.ZoomLevelSet = new BingMapsZoomLevelSet();​ 
-</​code>​ 
  
 ===== Pens, Brushes & Fonts ===== ===== Pens, Brushes & Fonts =====
Line 211: Line 187:
  
 **Properties** **Properties**
-{{section>​thinkgeo.mapsuite.core.geopen#​Public Properties}} +{{section>​12.0/​apis/​thinkgeo.core.geopen#​Public Properties}} 
-[[ThinkGeo.MapSuite.Core.GeoPen|You can find the complete API documentation for the GeoPen here.]]+[[12.0/​apis/​thinkgeo.core.geopen|You can find the complete API documentation for the GeoPen here.]]
  
 ==== GeoBrush ==== ==== GeoBrush ====
Line 226: Line 202:
  
 **Properties** **Properties**
-{{section>​thinkgeo.mapsuite.core.geosolidbrush#​Public Properties}}+{{section>​12.0/​apis/​thinkgeo.core.geosolidbrush#​Public Properties}}
  
-[[ThinkGeo.MapSuite.Core.GeoSolidBrush|You can find the complete API documentation for the GeoSolidBrush here.]]+[[12.0/​apis/​thinkgeo.core.geosolidbrush|You can find the complete API documentation for the GeoSolidBrush here.]]
  
 ==== GeoHatchBrush ==== ==== GeoHatchBrush ====
Line 246: Line 222:
   * Grids   * Grids
   * Bricks   * Bricks
-  * [[ThinkGeo.MapSuite.Core.GeoHatchStyle|Complete listing here...]]+  * [[12.0/​apis/​ThinkGeo.Core.GeoHatchStyle|Complete listing here...]]
  
  
 **Properties** **Properties**
-{{section>​ThinkGeo.MapSuite.Core.GeoHatchBrush#​Public Properties}}+{{section>​12.0/​apis/​ThinkGeo.Core.GeoHatchBrush#​Public Properties}}
  
-[[ThinkGeo.MapSuite.Core.GeoHatchBrush|You can find the complete API documentation for the GeoHatchBrush here.]]+[[12.0/​apis/​ThinkGeo.Core.GeoHatchBrush|You can find the complete API documentation for the GeoHatchBrush here.]]
  
 ==== GeoTextureBrush ==== ==== GeoTextureBrush ====
Line 258: Line 234:
 {{:Map Suite Services Edition Screenshot Gallery ChartsGraphs.png ?250|Sample Texture Brushes}} {{:Map Suite Services Edition Screenshot Gallery ChartsGraphs.png ?250|Sample Texture Brushes}}
 </​div>​ </​div>​
-The GeoTextureBrush allows you to fill an are with an texture image. ​ You can use this to represent natural effect such as water, sand, forest etc.  It is also useful for high impact polygons fills such an area that is currently dangerous having a semitransparent warning tile.  It is important to note that there are a number of ways the image tiles can be wrapped or flipped and you can find the details in [[ThinkGeo.MapSuite.Core.GeoWrapMode|GeoWrapMode]] property.+The GeoTextureBrush allows you to fill an are with an texture image. ​ You can use this to represent natural effect such as water, sand, forest etc.  It is also useful for high impact polygons fills such an area that is currently dangerous having a semitransparent warning tile.  It is important to note that there are a number of ways the image tiles can be wrapped or flipped and you can find the details in [[12.0/​apis/​ThinkGeo.Core.GeoBrushWrapMode|GeoWrapMode]] property.
  
  
 **Properties** **Properties**
-{{section>​thinkgeo.mapsuite.core.geotexturebrush#​Public Properties}}+{{section>​12.0/​apis/​thinkgeo.core.geotexturebrush#​Public Properties}}
  
-[[ThinkGeo.MapSuite.Core.GeoTextureBrush|You can find the complete API documentation for the GeoTextureBrush here.]]+[[12.0/​apis/​ThinkGeo.Core.GeoTextureBrush|You can find the complete API documentation for the GeoTextureBrush here.]]
  
 ==== GeoLinearGradientBrush ==== ==== GeoLinearGradientBrush ====
Line 274: Line 250:
  
 **Properties** **Properties**
-{{section>​ThinkGeo.MapSuite.Core.GeoLinearGradientBrush#​Public Properties}}+{{section>​12.0/​apis/​ThinkGeo.Core.GeoLinearGradientBrush#​Public Properties}}
  
-[[ThinkGeo.MapSuite.Core.GeoLinearGradientBrush |You can find the complete API documentation for the GeoLinearGradientBrush here.]]+[[12.0/​apis/​ThinkGeo.Core.GeoLinearGradientBrush |You can find the complete API documentation for the GeoLinearGradientBrush here.]]
  
 ==== GeoFont ==== ==== GeoFont ====
Line 286: Line 262:
  
 **Properties** **Properties**
-{{section>​ThinkGeo.MapSuite.Core.GeoFont#​Public Properties}}+{{section>​12.0/apis/ThinkGeo.Core.GeoFont#​Public Properties}} 
 + 
 +[[12.0/​apis/​ThinkGeo.Core.GeoFont |You can find the complete API documentation for the GeoFont here.]]
  
-[[ThinkGeo.MapSuite.Core.GeoFont |You can find the complete API documentation for the GeoFont here.]] 
  
-===== Predefined Styles ===== 
-[[map_suite_predefined_styles|Map Suite Predefined Style Guide]] 
 ===== Simple Styles ===== ===== Simple Styles =====
 ==== AreaStyle ==== ==== AreaStyle ====
thinkgeo_style_guide.1571637633.txt.gz · Last modified: 2019/10/21 06:00 by tgwikiupdate