-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrate all styles to use themed repos * fix tests and temporarily comment out two * tmp deploy sdk for this branch * update style switcher example * deploy samples temporarily * disable location in sample on destroy * tangram 0.8.1 * refill default lod 10 * autoselect theme defaults when style switched * yaml generator cleanup * update zinc lod default * update test * https for submodules * fix MapInitializerTests * add test coverage for themes * rm tmp circle branch deployment * deprecate zinc style * rm log
- Loading branch information
1 parent
5a841de
commit aeddc24
Showing
37 changed files
with
844 additions
and
106 deletions.
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.