Add documentation about how to add a map layer#37
Open
leonardehrenfried wants to merge 2 commits intostadtnavi:hbg-mfdz-devfrom
leonardehrenfried:map-layer-docs
Open
Add documentation about how to add a map layer#37leonardehrenfried wants to merge 2 commits intostadtnavi:hbg-mfdz-devfrom leonardehrenfried:map-layer-docs
leonardehrenfried wants to merge 2 commits intostadtnavi:hbg-mfdz-devfrom
leonardehrenfried:map-layer-docs
Conversation
hbruch
requested changes
Feb 7, 2020
| This layer takes a GeoJSON source and then converts it to the [Mapbox vector tile format](https://github.com/mapbox/vt-pbf). | ||
| This is a highly optimized format for sending geographic data to the client. | ||
|
|
||
| Take a note the the [`id` you give to your layer](https://github.com/mfdz/tilelive-roadworks-bw/blob/master/index.js#L85). |
There was a problem hiding this comment.
Typo. And how about adding a small code example directly to this page?
Collaborator
Author
There was a problem hiding this comment.
Do you mean the source code of the layer? I'm not sure if a "small snippet" would contain the needed information but I can add it.
| Take a note the the [`id` you give to your layer](https://github.com/mfdz/tilelive-roadworks-bw/blob/master/index.js#L85). | ||
| You will need it in the client in order to figure out which layer data should be processed in which UI component. | ||
|
|
||
| Once you have the layer source, add it to `hsl-map-server` like in the following PR: https://github.com/transportkollektiv/hsl-map-server/pull/1/files |
| ## digitransit UI | ||
|
|
||
| This is where the main work needs to happen. The files you need to touch are: | ||
|
|
There was a problem hiding this comment.
Again, some short code snippets would be great
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Comments welcome.