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:38]
sacha [Actual Process]
map_suite_style_guide_new [2018/03/02 16:40] (current)
sacha [Applying Styles Across ZoomLevels]
Line 73: Line 73:
 In general styles are applied to a particular ZoomLevel. ​ A ZoomLevel is a particular range, in scale, where you want to style things differently. ​ Zoom levels are part of a ZoomLevelSet which is a collection of non overlapping zoom levels.  ​ In general styles are applied to a particular ZoomLevel. ​ A ZoomLevel is a particular range, in scale, where you want to style things differently. ​ Zoom levels are part of a ZoomLevelSet which is a collection of non overlapping zoom levels.  ​
  
-An analogy would be to think of yourself in space looking down at the earth. ​ At this level your scale might be 1 million. ​ This height, or view, would be represented as a particular ZoomLevel in a ZoomLevelSet ranging from 1, ground level, to 1 million. ​ As you descend towards the earth your scale changes and you would pass through other ZoomLevels on your way down.  One thing to note is that as you descend your view of the earth changes and things that were too small to see now come into focus and things that were visible higher are now lost.  In the same way your view you change we allow you to set different styles at different ZoomLevels so that you can adjust how things look depending on your current scale. ​ For some layer, like surface streets, you would not even have a style to represent them at scale 1 million. ​ This would cause them not to draw at all but conversely, at this scale, you may draw the capitols ​of the world as small dots to represent them.  As you zoom into the earth those dots may be replaced by polygons that show the borders of the city etc.  At a certain scale you would want to show the surface streets but possibly ​just as small thin black lines. ​ As you zoom further still the thin lines would change to thicker black lines with a which inner line.  ​+An analogy would be to think of yourself in space looking down at the earth. ​ At this level your scale might be 1 million. ​ This height, or view, would be represented as a particular ZoomLevel in a ZoomLevelSet ranging from 1, ground level, to 1 million. ​ As you descend towards the earth your scale changes and you would pass through other ZoomLevels on your way down.  One thing to note is that as you descend your view of the earth changes and things that were too small to see now come into focus and things that were visible higher are now lost.  In the same way your view you change we allow you to set different styles at different ZoomLevels so that you can adjust how things look depending on your current scale. ​ For some layer, like surface streets, you would not even have a style to represent them at scale 1 million. ​ This would cause them not to draw at all but conversely, at this scale, you may draw the capitals ​of the world as small dots to represent them.  As you zoom towards ​the earth those dots may be replaced by polygons that show the borders of the city etc.  At a certain scale you would want to show the surface streets but perhaps ​just as small thin black lines. ​ As you zoom further still the thin lines would change to thicker black lines with a thin inner line.  ​
  
 ==== Default Styles ==== ==== Default Styles ====
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.1520008732.txt.gz ยท Last modified: 2018/03/02 16:38 by sacha