question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3D buildings from vector layer

See original GitHub issue

Hello!

I have a problem I can not solve for a long time …

I have a vector layer with buildings. In 3D mode, they appear flat … I also want to do this building in 3D…give them height.

Here are two screenshots and source:

var vectorSourceMinsk = new ol.source.Vector({
  format: new ol.format.GeoJSON(),
  url: './minsk_buildings.geojson'
});

var vectorLayerMinsk = new ol.layer.Vector({
  source: vectorSourceMinsk,
  style: styleFunction
});

var layer = new ol.layer.Tile({
  source: new ol.source.OSM()
});

var ol2d = new ol.Map({
  layers: [layer, vectorLayerMinsk],
  target: 'map2d',
  view: new ol.View({
    center: ol.proj.fromLonLat([-74.0064, 40.7142]),
    maxZoom: 19,
    zoom: 15
  }),
  controls: controls
});

var ol3d = new olcs.OLCesium({map: ol2d});

Can you help me? 162 163

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:40 (16 by maintainers)

github_iconTop GitHub Comments

5reactions
illsiocommented, Jan 10, 2019

Could someone please just post one simple (like @ema2000) working example with the newest OLCS Library?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extract 3D buildings from lidar data - Learn ArcGIS
Extract realistic 3D buildings. Generate 3D multipatch vector features out of lidar points classified as buildings, a DEM raster, and building footprints.
Read more >
How to: Create a 3d buildings view in QGIS
Now open Layer Properties. Do so by right-clicking on the layer 3db-US-Philadelphia in the layer list (left hand side) and choose Properties. In...
Read more >
Working with QGIS 3D - Part 2 - Lutra Consulting
In this post, we will explore 3d vectors and how to view buildings and trees. Data Sources. For the purpose of this blog...
Read more >
Display buildings in 3D | Mapbox GL JS
Use extrusions to display building heights in 3D. ... the Mapbox Streets vector tileset, which provides data for the building layer in the...
Read more >
Mapbox GL JS/Android: Draw User's 3D Vector Layer of ...
It's possible to draw 3D buildings by taking advantage of extrusions, however the 3D vector layer source is the Mapbox's underlying extract ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found