GithubHelp home page GithubHelp logo

tangrams / cinnabar-style Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 11.0 3.09 MB

Colorful cartography for that classic look

Home Page: http://tangrams.github.io/cinnabar-style/

License: MIT License

HTML 63.39% JavaScript 36.22% Makefile 0.39%

cinnabar-style's People

Contributors

bcamper avatar hjanetzek avatar louh avatar matkoniecz avatar meetar avatar nvkelso avatar pnorman avatar sensescape avatar tallytalwar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cinnabar-style's Issues

consider deleting dead code

At the end of style

#    transit-bus-roads:
#        data: { source: mapzen, layer: roads }
#        filter:
#            all:
#                - is_bus_route: true
#                - function() { return global.sdk_transit_overlay; }
#        draw:
#            lines:
#                interactive: false
#                color: [[13,[0,0,1,0.5]],[15,blue]]
#                width: [[11,0.5px],[12,0.8px],[16,1.25px],[18,1m]]
#                # let roads sort themselves past zoom 14
#                order: 488
#                # but give them all the same outline
#                outline:
#                    order: 487

is present. I think that this code should be deleted (history is handled by git history, ongoing implementation probably should be handled in an issue/pull request).

Investigate inconsistency between ES and JS renderers

As off commit, 38719cd, @nvkelso and I are seeing some inconsistent renders between JS and ES.

Refer screen shots for details:
screen shot 2017-09-13 at 10 24 54 am
screen shot 2017-09-13 at 10 27 50 am

However one small change of disabling building extrusion polygons, fixes the renders on ES.
https://github.com/tangrams/cinnabar-style/blob/gh-pages/cinnabar-style.yaml#L2907

This issue is not reproducible on other house style.

There might be some issue with the style sheet which is causing this inconsistent state between the renderers, or there could be some issue with ES code, still needs some investigation to iron out the issue.

Remove Zinc color theme

In #42 we fixed a bunch of bugs and added Zinc as a color theme.

Upon reflection, we're porting Zinc to Refill instead. Rather than supporting both options, let's remove Zinc as a color theme on Cinnabar (but keep the rest of the changes in #42).

  • Remove the color/zinc theme file
  • Move cinnabar colors from theme file into main YAML (and remove empty themes dir)
    • This will cut down on number of network requests, amount of indirection
  • Remove dat.GUI options for color
  • Docs
  • & etc

Buildings look bad in tilted 3d view

Using this style in Tangram ES with a tilted view the buildings get all smooched together. They need something to differentiate them, maybe add a vertical stroke? And/or change building exaggeration (eg: Zinc doesn't exaggerate at all so even though it would have the same problem, it doesn't because of the config)?

Default labels should enable all road labels early

To match the JS rig, and related to tangrams/tangram#484 (comment). The older logic is from Tangram era 0.7 but articulated labels changes more recently and the about to land curved labels make these labels look good earlier now.

Here's what the JS has, the YAML for the default labels scene file should mark them true (currently false).

text_visible_highway_e = _default;
text_visible_minor_road_e = _default;
text_visible_highway_e = _default;
text_visible_trunk_primary_e2 = _default;
text_visible_trunk_primary_e = _default;
text_visible_secondary_e = _default;
text_visible_tertiary_e = _default;
text_visible_minor_road_e = _default;
text_visible_exits_e = _default;

Address Tangram ES warnings

Some of these are just chatter, some should be fixed:

TANGRAM map.cpp:231: Loading scene file (async): /Users/nvkelso/git-repos/cinnabar-style/cinnabar-style.yaml
WARNING sceneLoader.cpp:172: Global reference is undefined: layers.landuse.minor-landuse.draw.outline.color <= gray1_e
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/OpenSans-Light.woff (open sans-300regular.ttf)
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/OpenSans-Regular.woff (open sans-400regular.ttf)
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/OpenSans-Italic.woff (open sans-400italic.ttf)
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/OpenSans-Semibold.woff (open sans-600regular.ttf)
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/OpenSans-SemiboldItalic.woff (open sans-600italic.ttf)
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/OpenSans-Bold.woff (open sans-700regular.ttf)
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/Montserrat-Regular.woff (montserrat-400regular.ttf)
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/Montserrat-Medium.woff (montserrat-500regular.ttf)
NOTIFY sceneLoader.cpp:770: Adding local font /Users/nvkelso/git-repos/cinnabar-style/fonts/Montserrat-Bold.woff (montserrat-700regular.ttf)
WARNING styleParam.cpp:159: Unknown StyleParam text:move_into_tile:false
WARNING sceneLoader.cpp:1777: Can't find data source mz_route_line for layer mz_route_line
WARNING sceneLoader.cpp:1777: Can't find data source mz_dash_line for layer mz_route_line_dash
WARNING sceneLoader.cpp:1777: Can't find data source mz_route_line_transit for layer mz_route_line_transit
WARNING sceneLoader.cpp:1777: Can't find data source mz_current_location for layer mz_current_location_gem
WARNING sceneLoader.cpp:1777: Can't find data source mz_route_location for layer mz_route_location
WARNING sceneLoader.cpp:1777: Can't find data source mz_route_start for layer mz_route_start
WARNING sceneLoader.cpp:1777: Can't find data source mz_route_stop for layer mz_route_stop
WARNING sceneLoader.cpp:1777: Can't find data source mz_route_transit_stop for layer mz_route_transit_stop
WARNING sceneLoader.cpp:1777: Can't find data source mz_search_result for layer mz_search_result
WARNING sceneLoader.cpp:1777: Can't find data source mz_dropped_pin for layer mz_dropped_pin
WARNING sceneLoader.cpp:1777: Can't find data source mz_default_point for layer mz_default_point
WARNING sceneLoader.cpp:1777: Can't find data source mz_default_shield for layer mz_default_shield
WARNING sceneLoader.cpp:1777: Can't find data source mz_default_line for layer mz_default_line
WARNING sceneLoader.cpp:1777: Can't find data source mz_default_polygon for layer mz_default_polygon
WARNING styleParam.cpp:159: Unknown StyleParam cull_from_tile:true
WARNING styleParam.cpp:159: Unknown StyleParam cull_from_tile:true
WARNING styleParam.cpp:159: Unknown StyleParam cull_from_tile:true
WARNING styleParam.cpp:159: Unknown StyleParam move_into_tile:true
WARNING styleParam.cpp:189: Invalid offset parameter '0,5px,'.
WARNING styleParam.cpp:189: Invalid offset parameter '0px'.
WARNING styleParam.cpp:189: Invalid offset parameter '0,5px,'.
WARNING styleParam.cpp:189: Invalid offset parameter '0px'.
WARNING stops.cpp:71: Error while parsing font size stops: 12.000000 21x
WARNING styleParam.cpp:159: Unknown StyleParam move_into_tile:true
NOTIFY tileManager.cpp:53: Remove source osm
NOTIFY tileManager.cpp:72: add source mapzen
TANGRAM tileWorker.cpp:51: Passed new TileBuilder to TileWorker
LOADED Font: Open Sans Italic size: 28
LOADED Font: Open Sans Regular size: 40
LOADED Font: Open Sans Regular size: 28
WARNING platform.cpp:29: Failed to read file at path: /Users/nvkelso/git-repos/cinnabar-style/fonts/varela-200regular.ttf
LOADED Font: System Font Thin size: 28
TANGRAM tileWorker.cpp:51: Passed new TileBuilder to TileWorker
LOADED Font: Open Sans Light size: 28
LOADED Font: Montserrat Regular size: 28
LOADED Font: Open Sans Light size: 40

BLOCKED: UX Language Short name Fallback

At zoom levels 7 and above, the map fallbacks to English which is fallback language of Tamil.

https://srikanthlogic.github.io/osm-ta/TamilMap.html

But it would be nice to have a switch to determine how the fallback should happen when short names are missing. (ie, within the language [pure language map] or fallback to short names in fallback language.

ux_language_text_source_short
ux_language_text_source_short_proxy_name

are the functions where this is implemented.

use cap: round for paths and roads

I am not planning making PR due to very high complexity of style, but it seems that cap:round would be useful for paths

for example https://github.com/matkoniecz/cinnabar-style/commit/33aec7e90652b09c43c228e107579a86e9fb06da makes following difference at https://mapzen.com/tangram/play/?#20.00000/50.08020/19.88489

from
selection_003

to
selection_004

It affects not only baths - see bottom right of https://user-images.githubusercontent.com/13661397/27248826-e48fa0ae-5300-11e7-9349-2d1e065eb34d.png (spotted in streetcomplete/StreetComplete#340)

Update documentation to reflect how to get different styles/themes

Currently the README points to other repositories to get the more labels and no labels styles, but those repositories say they aren't maintained, and point me back here.

I gather from poking around in the code that the different styles can be chosen by changing the themes/label-XX.yaml file that is imported at the top of cinnabar-style.yaml, where 0 is less details, and 11 is the most?

Can the documentation in the README (and elsewhere as appropriate, I guess) be updated to reflect how the different label styles are supposed to be chosen. If my guess above is correct, it would also be nice if the label-XX.yaml files were named to better reflect the changes in each one.

Thanks!

Refactor roads layer

Especially road text label sizes (smaller than 11 pt is probably too small), maybe add one way arrows?

duplicated filter

https://github.com/tangrams/cinnabar-style/blob/gh-pages/cinnabar-style.yaml#L850
https://github.com/tangrams/cinnabar-style/blob/gh-pages/cinnabar-style.yaml#L851

https://github.com/tangrams/cinnabar-style/blob/gh-pages/cinnabar-style.yaml#L888
https://github.com/tangrams/cinnabar-style/blob/gh-pages/cinnabar-style.yaml#L889

first line is completely useless an second has smaller requirement

not sure what is the intended meaning - delete first/second line? Decrement all z-levels from lowest to first duplicated? Increment all from first duplicated to highest?

BLOCKED: show access=private/no

Currently restricted access is not displayed on highway=*

For typical purposes it is preferable to indicate that road has no access.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.