-
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
Update Stylesheets #465
Changes from 1 commit
9e95dd3
a08fec1
48730f5
c26466b
272ae7b
95eff4d
e1f8b76
8b64ad2
d35cdeb
43e4a1f
b5087f3
560810f
6d0baa8
79a814b
e09cc3c
b320d05
c6f9849
89c7169
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 = [email protected]:tangrams/cinnabar-style.git | ||
[submodule "core/src/main/assets/styles/walkabout-style"] | ||
path = core/src/main/assets/styles/walkabout-style | ||
url = [email protected]:tangrams/walkabout-style.git |
+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 |
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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. oops :D |
||
} | ||
|
||
@Override public ThemeColor getDefaultColor() { | ||
return null; | ||
} | ||
|
||
@Override public Set<ThemeColor> getColors() { | ||
return null; | ||
} | ||
} |
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; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,52 @@ | ||
package com.mapzen.android.graphics.model; | ||
|
||
import java.util.Set; | ||
|
||
/** | ||
* Walkabout outdoor map style. | ||
*/ | ||
public class WalkaboutStyle extends MapStyle { | ||
public class WalkaboutStyle extends ThemedMapStyle { | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public WalkaboutStyle() { | ||
super("styles/walkabout-style-more-labels/walkabout-style-more-labels.yaml"); | ||
} | ||
|
||
@Override public String getBaseStyleFilename() { | ||
return "walkabout-style.yaml"; | ||
} | ||
|
||
@Override public String getStyleRootPath() { | ||
return "styles/walkabout-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 null; | ||
} | ||
|
||
@Override public Set<ThemeColor> getColors() { | ||
return null; | ||
} | ||
} |
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.
Hello sarah :D
I guess put for debugging purposes.
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.
:) Removed