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

Composite GeoJsonLayer, PolygonLayer and PathLayer #303

Merged
merged 5 commits into from
Jan 24, 2017
Merged

Composite GeoJsonLayer, PolygonLayer and PathLayer #303

merged 5 commits into from
Jan 24, 2017

Conversation

ibgreen
Copy link
Collaborator

@ibgreen ibgreen commented Jan 23, 2017

PolygonLayer supports flat, extrusion and wireframe


#### `drawContour` (Boolean, optional)

Draw choropleth contour if true, else fill choropleth area.
Copy link
Contributor

Choose a reason for hiding this comment

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

need to update the document after the API audit, we don't have drawContour as prop for the GeoJsonLayer, and there are more layer specific props.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

import PolygonLayer from '../polygon-layer/polygon-layer';
import flatten from 'lodash.flatten';

import {Container, getGeojsonFeatures} from '../../../lib/utils';
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we keep the layer specific util function in their own folders?
getGeojsonFeatures -> geoJson layer
normalizeGeojson -> deprecated choropleth layer

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

);
}

getFeaturePolygons(feature) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: naming consistency

import {join} from 'path';

// Polygon geometry generation is managed by the polygon tesselator
import {Container, getGeojsonFeatures, featureToPolygons} from '../../../lib/utils';
Copy link
Contributor

Choose a reason for hiding this comment

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

the polygon layer should not be aware of the concept feature, the featureToPolygons should be done in the geoJson-layer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@ibgreen ibgreen mentioned this pull request Jan 24, 2017
@ibgreen ibgreen merged commit b698a57 into dev Jan 24, 2017
@ibgreen ibgreen deleted the geojson branch January 24, 2017 19:27
heshan0131 pushed a commit to heshan0131/deck.gl that referenced this pull request Jan 24, 2017
* Composite geojson layer, with flat, extrusion and wireframe capability on PolygonLayer

* Lighting supported on polygon layer. New lighting shader module.

* Lighting supported on polygon layer. New lighting shader module.

* v3.1.0-beta.11

* v3.0.0-beta.12
howtimeflies0 pushed a commit that referenced this pull request Mar 8, 2017
* Composite geojson layer, with flat, extrusion and wireframe capability on PolygonLayer

* Lighting supported on polygon layer. New lighting shader module.

* Lighting supported on polygon layer. New lighting shader module.

* v3.1.0-beta.11

* v3.0.0-beta.12
howtimeflies0 pushed a commit that referenced this pull request Mar 8, 2017
* Composite geojson layer, with flat, extrusion and wireframe capability on PolygonLayer

* Lighting supported on polygon layer. New lighting shader module.

* Lighting supported on polygon layer. New lighting shader module.

* v3.1.0-beta.11

* v3.0.0-beta.12
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