Skip to content
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

Added regex pattern to color map #3560

Merged
merged 3 commits into from
Feb 12, 2016
Merged

Added regex pattern to color map #3560

merged 3 commits into from
Feb 12, 2016

Conversation

ggetz
Copy link
Contributor

@ggetz ggetz commented Feb 12, 2016

Added the option to specify a regex to the color map and added the option to the sandcastle example for color map.

if (defined(this._pattern)) {
var match = this._pattern.exec(value);
if (defined(match)) {
value = match[1];
Copy link
Contributor

Choose a reason for hiding this comment

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

Make a new local variable instead of assigning to value again (it will also default to undefined).

@pjcozzi
Copy link
Contributor

pjcozzi commented Feb 12, 2016

Just that comment, this looks good, @ggetz. Please check items off the roadmap, CesiumGS/3d-tiles#2, as you finish them.

@ggetz
Copy link
Contributor Author

ggetz commented Feb 12, 2016

Fixed and marked off on the roadmap.

@pjcozzi
Copy link
Contributor

pjcozzi commented Feb 12, 2016

Looks good!

pjcozzi added a commit that referenced this pull request Feb 12, 2016
Added regex pattern to color map
@pjcozzi pjcozzi merged commit 2f0d7ea into CesiumGS:3d-tiles-style Feb 12, 2016
@pjcozzi pjcozzi deleted the color-map-regex branch February 12, 2016 19:36
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.

2 participants