Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Vector branch cleanup

ZachTRiced0c1aa5fb9d0
diff --git a/web/js/components/layer/settings/settings.js b/web/js/components/layer/settings/settings.js
index c7f87d69d..ca4b10726 100644
--- a/web/js/components/layer/settings/settings.js
+++ b/web/js/components/layer/settings/settings.js
@@ -211,7 +211,6 @@ class LayerSettings extends React.Component {
*/
renderVectorStyles() {
const {
-
setStyle,
clearStyle,
groupName,
@@ -307,9 +306,9 @@ const mapDispatchToProps = dispatch => ({
setThresholdRangeAndSquash(layerId, { min, max, squash }, index, groupName)
);
},
- setFilterRange: (layerId, min, max, squash, index, groupName) => {
+ setFilterRange: (layerId, min, max, index, groupName) => {
dispatch(
- setFilterRange(layerId, { min, max, squash }, index, groupName)
+ setFilterRange(layerId, { min, max }, index, groupName)
);
},
setCustomPalette: (layerId, paletteId, index, groupName) => {
diff --git a/web/js/components/layer/settings/vector-style.js b/web/js/components/layer/settings/vector-style.js
index 1d15eca6a..75c377163 100644
--- a/web/js/components/layer/settings/vector-style.js
+++ b/web/js/components/layer/settings/vector-style.js
@@ -16,9 +16,6 @@ class VectorStyleSelect extends React.Component {
*/
onChangeVectorStyle(vectorStyleId) {
const { layer, clearStyle, setStyle, groupName } = this.props;
- // Applying customs takes a while and
- // it looks more natural to make this async
- // instead of waiting
setTimeout(function() {
if (vectorStyleId === layer.id) {
clearStyle(layer, vectorStyleId, groupName);
@@ -28,6 +25,7 @@ class VectorStyleSelect extends React.Component {
}, 0);
this.setState({ activeVectorStyle: vectorStyleId });
}
+
/**
* Apply logic to render correct vectorStyle selection
* @param {String} id | Legend Id
@@ -79,6 +77,7 @@ class VectorStyleSelect extends React.Component {
</div>
);
}
+
render() {
const { index, vectorStyles, layer } = this.props;
var vectorStyleId = layer.vectorStyle.id;
@@ -109,6 +108,7 @@ class VectorStyleSelect extends React.Component {
);
}
}
+
VectorStyleSelect.propTypes = {
index: PropTypes.number,
layer: PropTypes.object,
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.js
index 1bf415e9d..1acc7d25e 100644
--- a/web/js/map/layerbuilder.js
+++ b/web/js/map/layerbuilder.js
@@ -369,7 +369,7 @@ export function mapLayerBuilder(models, config, cache, mapUi, store) {
url: source.url + urlParameters,
layer: layerName,
format: new MVT(),
- projection: 'EPSG:4326',
+ matrixSet: tms,
tileGrid: new OlTileGridTileGrid({
extent: extent,
origin: start,
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 10e553b24..9c7e6fc3c 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -964,8 +964,6 @@ export function mapui(models, config, store, ui) {
metaLegend: legend
},
isDraggable: true
- // offsetTop: e.clientY + 'px',
- // offsetLeft: e.clientX + 'px'
}
));
};