Skip to content

Commit

Permalink
#85 fix tile load problems by downgrading ol back to 5.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sookoll committed Sep 27, 2019
1 parent d2f4a8a commit 2e40f72
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 25 deletions.
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geop",
"version": "1.3.0",
"version": "1.3.1",
"description": "Estonian geocaching game",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -63,7 +63,7 @@
"mgrs": "^1.0.0",
"mini-toastr": "^0.8.1",
"nosleep.js": "^0.7.0",
"ol": "^6.0.0-beta.15",
"ol": "^5.3.3",
"popper.js": "^1.15.0",
"proj4": "^2.5.0",
"qrious": "^4.0.2",
Expand Down
1 change: 0 additions & 1 deletion src/geop/components/geocache/Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Filter extends Component {
render () {
this.state.filter = this.buildPropertyList(this.state.layers)
const storedFilter = getState('geocache/filter')
console.log(storedFilter)
this.el.html(`
<ul class="list-group mb-3">
${Object.keys(this.state.filter).length
Expand Down
1 change: 0 additions & 1 deletion src/geop/components/layer/LayerManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ class LayerManager extends Component {
layers[0].setVisible(true)
this.state.activeBaseLayer = layers[0]
setState('map/baseLayer', id, true)
// this.state.open = true
this.render()
return true
}
Expand Down
8 changes: 4 additions & 4 deletions src/geop/utilities/GPXFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Point from 'ol/geom/Point'
import LineString from 'ol/geom/LineString'
import MultiLineString from 'ol/geom/MultiLineString'
import Feature from 'ol/Feature'
import { transformGeometryWithOptions } from 'ol/format/Feature'
import { transformWithOptions } from 'ol/format/Feature'
import GeometryLayout from 'ol/geom/GeometryLayout'
import { includes } from 'ol/array'
import { makeStructureNS, makeObjectPropertySetter, parseNode, pushParseAndPop,
Expand Down Expand Up @@ -193,7 +193,7 @@ function readWpt (node, objectStack) {
const coordinates = appendCoordinate([], layoutOptions, node, values)
const layout = applyLayoutOptions(layoutOptions, coordinates)
const geometry = new Point(coordinates, layout)
transformGeometryWithOptions(geometry, false, options)
transformWithOptions(geometry, false, options)
const feature = new Feature(geometry)
feature.setProperties(values)
feature.set('wpt', xml2js(node))
Expand Down Expand Up @@ -289,7 +289,7 @@ function readRte (node, objectStack) {
delete values['layoutOptions']
const layout = applyLayoutOptions(layoutOptions, flatCoordinates)
const geometry = new LineString(flatCoordinates, layout)
transformGeometryWithOptions(geometry, false, options)
transformWithOptions(geometry, false, options)
const feature = new Feature(geometry)
feature.setProperties(values)
return feature
Expand Down Expand Up @@ -318,7 +318,7 @@ function readTrk (node, objectStack) {
delete values['layoutOptions']
const layout = applyLayoutOptions(layoutOptions, flatCoordinates, ends)
const geometry = new MultiLineString(flatCoordinates, layout, ends)
transformGeometryWithOptions(geometry, false, options)
transformWithOptions(geometry, false, options)
const feature = new Feature(geometry)
feature.setProperties(values)
return feature
Expand Down

0 comments on commit 2e40f72

Please sign in to comment.