public class OSMPolygon3DDataSource
extends com.nutiteq.vectordatasources.AbstractVectorDataSource<com.nutiteq.geometry.Polygon3D>
Constructor and Description |
---|
OSMPolygon3DDataSource(com.nutiteq.projections.Projection proj,
float height,
Roof roofShape,
int color,
int roofColor,
int maxObjects,
com.nutiteq.style.StyleSet<com.nutiteq.style.Polygon3DStyle> styleSet)
Constructor for layer with 3D OSM building boxes
|
Modifier and Type | Method and Description |
---|---|
Collection<com.nutiteq.geometry.Polygon3D> |
convert3D(Collection<com.nutiteq.geometry.Polygon> polygons,
int zoom) |
com.nutiteq.components.Envelope |
getDataExtent() |
Collection<com.nutiteq.geometry.Polygon3D> |
loadElements(com.nutiteq.components.CullState cullState) |
public OSMPolygon3DDataSource(com.nutiteq.projections.Projection proj, float height, Roof roofShape, int color, int roofColor, int maxObjects, com.nutiteq.style.StyleSet<com.nutiteq.style.Polygon3DStyle> styleSet)
proj
- Projection, usually EPSG3857()height
- default height for buildings, unless they have height tag setmaxObjects
- limits number of objects per network call. Btw, the server has "largest objects first" orderstyleSet
- defines visual stylespublic com.nutiteq.components.Envelope getDataExtent()
public Collection<com.nutiteq.geometry.Polygon3D> loadElements(com.nutiteq.components.CullState cullState)
public Collection<com.nutiteq.geometry.Polygon3D> convert3D(Collection<com.nutiteq.geometry.Polygon> polygons, int zoom)
Copyright © 2014. All rights reserved.