I'm trying to use a specific marker with my GeoJSON files. They don't show up despite my readings and Firebug.
Can anyone help ?
var map = new OpenLayers.Map('map');
var emprise_style = new OpenLayers.Symbolizer.Point({
externalGraphic: '../symbol/marker.png'
});
var empriseStyleMap = new OpenLayers.StyleMap({'default': emprise_style});
var emprise_layer = new OpenLayers.Layer.Vector("GeoJSON", {
projection: "EPSG:3857",
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "emprise.geojson",
format: new OpenLayers.Format.GeoJSON()
}),
styleMap: empriseStyleMap
});
map.addLayer(emprise_layer)