Skip to content

Adds support for mapzen terrain - #6110

Merged
mollymerp merged 14 commits into
masterfrom
ibesora-mapzen-terrain
Feb 12, 2018
Merged

mollymerp merged 14 commits into
masterfrom
ibesora-mapzen-terrain

Conversation

@mollymerp

Copy link
Copy Markdown
Contributor

continuing from @ibesora's work at #6024

@ibesora I rebased your PR and fixed the merge conflicts, and then I added a couple comments and tests 😊 . I don't have push access to your branch, so I made this new one (as I did with the maxzoom PR)

@mollymerp mollymerp mentioned this pull request Feb 8, 2018
3 of 5 tasks
@ibesora

ibesora commented Feb 8, 2018

Copy link
Copy Markdown
Contributor

Looks great! You guys have such a nice project structure. Great work!

@mollymerp

mollymerp commented Feb 8, 2018 •

Copy link
Copy Markdown
Contributor Author

@ibesora here is the gl-native equivalent mapbox/mapbox-gl-native#11154

@anandthakker anandthakker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆒 looks good to me! Couple of nitpicks inline

Comment thread src/data/dem_data.js Outdated
}

loadFromImage(data: RGBAImage) {
loadFromImage(data: RGBAImage, encoding?: "mapbox" | "terrarium") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

encoding can be non-optional here

loadTile(params: WorkerDEMTileParameters, callback: WorkerDEMTileCallback) {
const uid = params.uid;
const uid = params.uid,
encoding = params.encoding || "mapbox";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the || "mapbox" shouldn't be needed since WorkerDemTileParameters.encoding is required.

@mollymerp
mollymerp merged commit f13c86e into master Feb 12, 2018
@mollymerp
mollymerp deleted the ibesora-mapzen-terrain branch February 12, 2018 19:31
pathmapper pushed a commit to pathmapper/mapbox-gl-js that referenced this pull request Feb 13, 2018
* Added the encoding parameter to the raster-dem source type

* Changes proposed by @mollymerp

* Changed the raster-dem description and expanded the encoding parameter one

* Changed the description in the style spec reference

* Fixes linter errors

* Changed ts type

* Proposed changes

* Bug

* Added a default value when the RasterDEMTileWorkerSource is called without params

* Adds default value to pass unit tests

* Explicit encoding type and _ to private functions

* add guard for invalid encoding parameter and unit test

* add terrarium render test

* address review comments
pathmapper pushed a commit to pathmapper/mapbox-gl-js that referenced this pull request Feb 13, 2018
* Added the encoding parameter to the raster-dem source type

* Changes proposed by @mollymerp

* Changed the raster-dem description and expanded the encoding parameter one

* Changed the description in the style spec reference

* Fixes linter errors

* Changed ts type

* Proposed changes

* Bug

* Added a default value when the RasterDEMTileWorkerSource is called without params

* Adds default value to pass unit tests

* Explicit encoding type and _ to private functions

* add guard for invalid encoding parameter and unit test

* add terrarium render test

* address review comments
@ibesora ibesora mentioned this pull request Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants