在OpenLayers 3中可以更改选区中的边框颜色:
style = new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'blue',
width: 2
})
});
但是有可能只改变边界底部吗?
类似的东西:
style = new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'blue',
width: 2,
border-bottom: 2px dotted #ff9900
})
});
答案 0 :(得分:4)
当然,由于可用的巨大OL 3资源,您可以使用第二种样式来(模拟)边框底部。使用ol.style#GeometryFunction
。灵感来自this example。
http://jsfiddle.net/jonataswalker/k11bxma2/
有点不同 - http://jsfiddle.net/jonataswalker/n73gm0u9/
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexIndexOverflowException: method ID not in [0,
0xffff]: 65536
at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:484)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:261)
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2