User Tools

Site Tools


map_suite_style_guide_new

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
map_suite_style_guide_new [2018/03/02 16:40]
sacha [Zoom Levels]
map_suite_style_guide_new [2018/03/02 16:40] (current)
sacha [Applying Styles Across ZoomLevels]
Line 80: Line 80:
 ==== Custom Styles ==== ==== Custom Styles ====
 ==== Applying Styles Across ZoomLevels ==== ==== Applying Styles Across ZoomLevels ====
-It is often the case you need to apply a single set of styles across a number of differnt ​ZoomLevels. ​ You may want, for example, surface streets to be drawn as a thin black line from ZoomLevel01 through ZoomLevel05. ​ It would be tedious to set the styles for each ZoomLevel between one through five.  To simplify this requirement we allow you to apply styles across ZoomLevels using the ApplyUntilZoomLevel API on the ZoomLevel itself. ​ Let's say you want a particular Style to be visible at ZoomLevel01 through ZoomLevel05. To make that work, we can simply code as follows:+It is often the case you need to apply a single set of styles across a number of different ​ZoomLevels. ​ You may want, for example, surface streets to be drawn as a thin black line from ZoomLevel01 through ZoomLevel05. ​ It would be tedious to set the styles for each ZoomLevel between one through five.  To simplify this requirement we allow you to apply styles across ZoomLevels using the ApplyUntilZoomLevel API on the ZoomLevel itself. ​ Let's say you want a particular Style to be visible at ZoomLevel01 through ZoomLevel05. To make that work, we can simply code as follows:
  
 //The code below applies all the styles in ZoomLevel01 to every ZoomLevel until ZoomLevel05. ​ In this way you can apply the same styles across a large range of ZoomLevels and save coding each ZoomLevel. ​ Remember to apply the ZoomLevels from smallest, 01, to the largest, 20.// //The code below applies all the styles in ZoomLevel01 to every ZoomLevel until ZoomLevel05. ​ In this way you can apply the same styles across a large range of ZoomLevels and save coding each ZoomLevel. ​ Remember to apply the ZoomLevels from smallest, 01, to the largest, 20.//
map_suite_style_guide_new.1520008830.txt.gz ยท Last modified: 2018/03/02 16:40 (external edit)