I'm experiencing some issues with displaying OSM and GeoJSON.
With Firefox v30 I see my GeoJSON data, but OSM is invisible. With Chrome v35 I see OSM, not my GeoJSON...
What is the explanation? (except creating "Chrofox"..)
var map = new ol.Map({
target: 'map',
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
}),
new ol.layer.Vector({
title: 'operation',
source: new ol.source.GeoJSON({
//projection: 'EPSG:3857',
url: 'emprise.geojson'}),
style: new ol.style.Style({
image: new ol.style.Circle({
radius:2,
fill: new ol.style.Fill({color: 'red'})
})
})
})
],
view: new ol.View({ <!--2D marche plus...2014 06 29 -->
center:ol.proj.transform([1.22, 47.435], 'EPSG:4326', 'EPSG:3857'),
zoom:9
})
});