Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
controls: ol.control.defaults().extend([
new ol.control.ScaleLine({
units: 'metrics'
})
]),
var icons=[];
function checkRefresh(){
var xCoo = document.getElementById("coordx").value;
var yCoo = document.getElementById("coordy").value;
var rad = document.getElementById("rad").value;
if( xCoo == "" || yCoo == "" || xCoo == "" && yCoo == ""){
alert("Bitte Tippen Sie die Zahlen ein!");
}else{
var iconFeature = new ol.Feature({
geometry: new ol.geom.Point([xCoo, yCoo])
});
var iconStyle = new ol.style.Style({
image: new ol.style.Icon({
anchor: [10, 20],
anchorXUnits: 'fraction',
anchorYUnits: 'pixels',
opacity: 0.75,
src: 'icon.png'
})
});
iconFeature.setStyle(iconStyle);
var vectorSource = new ol.source.Vector({
features: [iconFeature]
});
var vectorLayer = new ol.layer.Vector({
source: vectorSource
});
//save in array
icons.push(vectorLayer);
//put the Marker to map
map.addLayer(vectorLayer);
}
};