Closed q77322708 closed 3 years ago
The is also a setStyle
method...
Line style is OK. Top surface style is OK.
question:
1、How to set the styles of 4 side surfaces ?
2、The current 3D building data is GeoJSON format . Does 3D building data support MVT format ?
var r3D = new ol.render3D({
height:0,
maxResolution:0.6,
defaultHeight:3.5 ,
// ghost : true,
style: new ol.style.Style({
fill: new ol.style.Fill({
color: '#ff2d237d'
}) ,
stroke:new ol.style.Stroke({
color: '#79fe4d' ,
width: 2
}) ,
}),
});
The floor style is the one of the layer...
render3D only apply to vector layer for MVT, you have to look at MapBox or MapLibre solution, see ol integration https://openlayers.org/en/latest/examples/mapbox-layer.html (experimental)
OK,OK~~ Thank you very much.
@q77322708 请问,你提到的这个问题解决了吗?
Take this example: http://viglino.github.io/ol-ext/examples/map/map.layer.3D.html![image](https://user-images.githubusercontent.com/47692690/109268866-a4a12480-7846-11eb-89f4-e50c6372cd26.png)
How to set the style of 3D building ? Line and surface style setting of 3D building .