aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorThomas Haddad2017-01-18 15:53:36 +0100
committerThomas Haddad2017-01-18 15:53:36 +0100
commitdbd9407e8f4c3cdd698ef1dbfd50b156d0cb5b16 (patch)
tree74a327a952683136c3c7c9d90b4142e7adb69d9b /app/assets/javascripts
parentdde5adfc660ebf65ba19bd13e4c177a171fb60cb (diff)
downloadchouette-core-dbd9407e8f4c3cdd698ef1dbfd50b156d0cb5b16.tar.bz2
Refs #2404: Fix ol view not working when projection is defined
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/es6_browserified/itineraries/components/OlMap.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/es6_browserified/itineraries/components/OlMap.js b/app/assets/javascripts/es6_browserified/itineraries/components/OlMap.js
index e920d1899..b87225d6c 100644
--- a/app/assets/javascripts/es6_browserified/itineraries/components/OlMap.js
+++ b/app/assets/javascripts/es6_browserified/itineraries/components/OlMap.js
@@ -12,8 +12,8 @@ class OlMap extends Component{
target: 'stoppoint_map' + this.props.index,
layers: [
new ol.layer.Tile({
- source: new ol.source.OSM(),
- projection: 'EPSG:4326'
+ projection: 'EPSG:4326',
+ source: new ol.source.OSM()
})
],
controls: [ new ol.control.ScaleLine() ],
@@ -22,8 +22,7 @@ class OlMap extends Component{
}),
view: new ol.View({
center: ol.proj.fromLonLat([2.349014, 48.864716]),
- zoom: 18,
- projection: 'EPSG:4326'
+ zoom: 18
})
});
// TODO when fetching, use extent value in EPSG 4326