jq_map.width(width);
jq_map.height(height);
/*
- var map = new OpenLayers.Map(jq_map.context, {
+ var map = new OpenLayers.Map(jq_map[0], {
projection: EPSG3857,
displayProjection: EPSG4326,
units: "m",
});
var map = new ol.Map({
- target: jq_map.context,
+ target: jq_map[0],
layers: [
layer_map,
layer_sledrun
attributionOptions: {
collapsible: false
}
+ }),
+ interactions: ol.interaction.defaults({
+ mouseWheelZoom: false
})
});
popup_content.innerHTML = '<p>You clicked</p>';
popup_overlay.setPosition(event.coordinate);
});
- select_hover.on('select', function(event) {
- console.log(event);
- });
/*
// add features