我遇到了一个带有坐标数组的ol.proj.transform或ol.proj.fromLonLat问题。为了测试我尝试使用: var my_array=new Array();
my_array[0]='13.494263,47.542546';
my_array[1]='13.675537,47.563928';
my_array[2]='13.763428,47.394399';
my
使用ol.format.KML writeFeatures()时,我无法理解defaultStyle。我写出的功能没有单独的样式,因此我想将图层样式应用于KML功能。我试过这个: var features = vectorLayer.getSource().getFeatures(); // these do not have styles
var layerStyle = vectorLaye
因此,我使用OpenLayers3示例here,它工作正常,但我不想在每一行上绘制箭头。只有第一个被绘制的。这是我现在的风格功能。 navigationLineStyleFunction: function(feature) {
var geometry = feature.getGeometry();
var lineColor = '#c1005d'
var st
如果要导入系统中的一个JSON文件到矢量图层,是一样简单: var restaurantsold = new ol.layer.Vector({
title: 'b_layer',
source: new ol.source.Vector({
url: 'restaurantjson.geojson',
format: new ol.format.Ge