-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Stylesheets #465
Merged
Merged
Update Stylesheets #465
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9e95dd3
migrate all styles to use themed repos
sarahsnow1 a08fec1
fix tests and temporarily comment out two
sarahsnow1 48730f5
tmp deploy sdk for this branch
sarahsnow1 c26466b
update style switcher example
sarahsnow1 272ae7b
deploy samples temporarily
sarahsnow1 95eff4d
disable location in sample on destroy
sarahsnow1 e1f8b76
tangram 0.8.1
sarahsnow1 8b64ad2
refill default lod 10
sarahsnow1 d35cdeb
autoselect theme defaults when style switched
sarahsnow1 43e4a1f
yaml generator cleanup
sarahsnow1 b5087f3
update zinc lod default
sarahsnow1 560810f
update test
sarahsnow1 6d0baa8
https for submodules
sarahsnow1 79a814b
fix MapInitializerTests
sarahsnow1 e09cc3c
add test coverage for themes
sarahsnow1 b320d05
rm tmp circle branch deployment
sarahsnow1 c6f9849
deprecate zinc style
sarahsnow1 89c7169
rm log
sarahsnow1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
[submodule "core/src/main/assets/styles/bubble-wrap"] | ||
path = core/src/main/assets/styles/bubble-wrap | ||
url = https://github.com/tangrams/bubble-wrap.git | ||
[submodule "core/src/main/assets/styles/cinnabar-more-labels"] | ||
path = core/src/main/assets/styles/cinnabar-more-labels | ||
url = https://github.com/tangrams/cinnabar-style-more-labels.git | ||
[submodule "core/src/main/assets/styles/walkabout-style-more-labels"] | ||
path = core/src/main/assets/styles/walkabout-style-more-labels | ||
url = https://github.com/tangrams/walkabout-style-more-labels.git | ||
[submodule "core/src/main/assets/styles/zinc-style-more-labels"] | ||
path = core/src/main/assets/styles/zinc-style-more-labels | ||
url = https://github.com/tangrams/zinc-style-more-labels.git | ||
[submodule "samples/mapzen-android-sdk-sample/src/main/assets/styles/tron-style"] | ||
path = samples/mapzen-android-sdk-sample/src/main/assets/styles/tron-style | ||
url = https://github.com/tangrams/tron-style.git | ||
[submodule "core/src/main/assets/styles/refill-style"] | ||
path = core/src/main/assets/styles/refill-style | ||
url = https://github.com/tangrams/refill-style | ||
[submodule "core/src/main/assets/styles/cinnabar-style"] | ||
path = core/src/main/assets/styles/cinnabar-style | ||
url = https://github.com/tangrams/cinnabar-style.git | ||
[submodule "core/src/main/assets/styles/walkabout-style"] | ||
path = core/src/main/assets/styles/walkabout-style | ||
url = https://github.com/tangrams/walkabout-style.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule bubble-wrap
updated
24 files
+1 −1 | .gitignore | |
+1 −1 | VERSION | |
+0 −6,282 | bubble-wrap-style-more-labels.yaml | |
+0 −6,282 | bubble-wrap-style-no-labels.yaml | |
+330 −725 | bubble-wrap-style.yaml | |
+0 −0 | dist/.gitkeep | |
+ − | fonts/Montserrat-Bold.woff | |
+ − | fonts/Montserrat-Medium.woff | |
+ − | images/[email protected] | |
+63 −101 | index.html | |
+329 −0 | themes/bubble-wrap-icons.yaml | |
+ − | themes/images/[email protected] | |
+41 −0 | themes/label-0.yaml | |
+41 −0 | themes/label-1.yaml | |
+41 −0 | themes/label-10.yaml | |
+228 −0 | themes/label-11.yaml | |
+58 −0 | themes/label-2.yaml | |
+77 −0 | themes/label-3.yaml | |
+72 −0 | themes/label-4.yaml | |
+50 −0 | themes/label-5.yaml | |
+85 −0 | themes/label-6.yaml | |
+77 −0 | themes/label-7.yaml | |
+61 −0 | themes/label-8.yaml | |
+61 −0 | themes/label-9.yaml |
Submodule cinnabar-more-labels
deleted from
4b1ba0
Submodule cinnabar-style
added at
079418
Submodule refill-style
updated
43 files
Submodule walkabout-style
added at
291d90
Submodule walkabout-style-more-labels
deleted from
66bbe1
Submodule zinc-style-more-labels
deleted from
ab5203
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 40 additions & 2 deletions
42
core/src/main/java/com/mapzen/android/graphics/model/BubbleWrapStyle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,52 @@ | ||
package com.mapzen.android.graphics.model; | ||
|
||
import java.util.Set; | ||
|
||
/** | ||
* BubbleWrap default map style. | ||
*/ | ||
public class BubbleWrapStyle extends MapStyle { | ||
public class BubbleWrapStyle extends ThemedMapStyle { | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public BubbleWrapStyle() { | ||
super("styles/bubble-wrap/bubble-wrap-style-more-labels.yaml"); | ||
super("styles/bubble-wrap/bubble-wrap-style.yaml"); | ||
} | ||
|
||
@Override public String getBaseStyleFilename() { | ||
return "bubble-wrap-style.yaml"; | ||
} | ||
|
||
@Override public String getStyleRootPath() { | ||
return "styles/bubble-wrap/"; | ||
} | ||
|
||
@Override public String getThemesPath() { | ||
return "themes/"; | ||
} | ||
|
||
@Override public int getDefaultLod() { | ||
return NONE; | ||
} | ||
|
||
@Override public int getLodCount() { | ||
return NONE; | ||
} | ||
|
||
@Override public int getDefaultLabelLevel() { | ||
return 5; | ||
} | ||
|
||
@Override public int getLabelCount() { | ||
return 12; | ||
} | ||
|
||
@Override public ThemeColor getDefaultColor() { | ||
return ThemeColor.NONE; | ||
} | ||
|
||
@Override public Set<ThemeColor> getColors() { | ||
return null; | ||
} | ||
} |
49 changes: 47 additions & 2 deletions
49
core/src/main/java/com/mapzen/android/graphics/model/CinnabarStyle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,59 @@ | ||
package com.mapzen.android.graphics.model; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
import static com.mapzen.android.graphics.model.ThemeColor.CINNABAR; | ||
|
||
/** | ||
* Cinnabar default map style. | ||
*/ | ||
public class CinnabarStyle extends MapStyle { | ||
public class CinnabarStyle extends ThemedMapStyle { | ||
|
||
private final Set<ThemeColor> supportedColors = new HashSet<ThemeColor>() { { | ||
add(CINNABAR); | ||
} }; | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public CinnabarStyle() { | ||
super("styles/cinnabar-more-labels/cinnabar-style-more-labels.yaml"); | ||
super("styles/cinnabar-style/cinnabar-style.yaml"); | ||
} | ||
|
||
@Override public String getBaseStyleFilename() { | ||
return "cinnabar-style.yaml"; | ||
} | ||
|
||
@Override public String getStyleRootPath() { | ||
return "styles/cinnabar-style/"; | ||
} | ||
|
||
@Override public String getThemesPath() { | ||
return "themes/"; | ||
} | ||
|
||
@Override public int getDefaultLod() { | ||
return NONE; | ||
} | ||
|
||
@Override public int getLodCount() { | ||
return NONE; | ||
} | ||
|
||
@Override public int getDefaultLabelLevel() { | ||
return 5; | ||
} | ||
|
||
@Override public int getLabelCount() { | ||
return 12; | ||
} | ||
|
||
@Override public ThemeColor getDefaultColor() { | ||
return CINNABAR; | ||
} | ||
|
||
@Override public Set<ThemeColor> getColors() { | ||
return supportedColors; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this 11 or 12?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its zero indexed and there are 12 label levels for bubble wrap: https://mapzen.com/documentation/cartography/themes/#bubble-wrap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops :D