Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMAMapPolygon is not drawn when there are coordinates of different altitudes #196

Open
cukingpro opened this issue Apr 28, 2021 · 4 comments

Comments

@cukingpro
Copy link

cukingpro commented Apr 28, 2021

let coordinates: [NMAGeoCoordinates] = [
    NMAGeoCoordinates(latitude: 35.6519104, longitude: 139.7700593, altitude: 100)
    NMAGeoCoordinates(latitude: 35.6519654, longitude: 139.7697414, altitude: 100)
    NMAGeoCoordinates(latitude: 35.6521398, longitude: 139.7696503, altitude: 50)
]
let polygon = NMAMapPolygon(vertices: coordinates)
polygon.fillColor = .yellow
mapView.add(mapObject: polygon)

It is only drawn when all altitudes are the same. Please help me.

  • HERE SDK 3.17
  • iPad mini 5, iOS 13.4.1
@dashchak
Copy link
Contributor

It is expected behaviour as polygon is 2D plane figure.
https://en.wikipedia.org/wiki/Polygon.

@cukingpro
Copy link
Author

Is there any way to draw a flat shape in 3d? I am trying to draw a plane perpendicular to the ground.

@dashchak
Copy link
Contributor

As a workaround you can use NMAMapGeoModel, see https://developer.here.com/documentation/ios-premium/3.18/dev_guide/topics/map-objects-and-interaction.html

Regarding current issue, we will need to decide whether to fix it as it is low priority for us.

@cukingpro
Copy link
Author

BugHereMap.mov

An error occurred when using NMAImage to draw NMAGeoMesh over a large area. With 1 small area, everything works very well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants