wrld3d / ios-api

iOS API for WRLD: Stunning, Interactive 3D Maps
BSD 2-Clause "Simplified" License
19 stars 7 forks source link

Add polyline or polygon with different elevation #40

Closed cukingpro closed 3 years ago

cukingpro commented 3 years ago

Hi, I have some markers with different elevations. I want to draw polyline or polygon between these markers. Does it support that? Thank you

ghost commented 3 years ago

Yes, you can supply an array of elevations for the points in the line using the setPerPointElevations method. Note that the default is for elevations to be relative to the terrain. You can switch to using elevations above sea level if you prefer. See https://www.wrld3d.com/ios/latest/docs/api/Classes/WRLDPolyline.html for all the docs.