map map.addLayer() layer layer.setSource() source source.addFeature(); feature feature.setStyle(); map.on("click",callback)map.un("click",callback)