-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Question] Is this possible to match the MGL view point in another (non Mapbox) opengl/webgl view? #3668
Comments
Unfortunately this isn't something that's possible with the iOS SDK at this time. |
To clarify, it isn't possible to place 3D models directly in the map, to have the Mapbox iOS SDK render it for you. If you wanted to synchronize some other view with the map view, that would be a pretty manual affair, but take a look at the documentation for MGLMapCamera as well as the geometric conversion methods in MGLMapView; maybe you could piece it together with those APIs. |
@1ec5 It is exactly my point. I know that mapboxgl can't render 3D objects. Because of this I need an interface to retrieve the global space and camera informations to reproduce a 3D overlay with another view (wkwebview + tree.js or native gl View). Do you mind if we leave this issue opened until I figure it out? |
Are you talking about the doc in the source code or somewhere else? |
Yes, I’m referring to the documentation in the source code, which is also available online. Specifically, take a look at:
|
Thx you, this is a good starting point. |
Hi @dagatsoin. I recently did something similar to what you describe using MapBox and a transparent overlay view for drawing 3D objects on top of the map. I blogged about it here. |
This is not an issue or maybe a lack of information about the rendering design. (Or I miss some docs?)
My goal is to put 3D models on the map. I know it is not possible to draw 3D objects for now in Mapbox.
I plan to use another view on top of the MGLView. I will start with a cordova wkwebview + webgl canvas for cross plateform concern.
This 3D canvas will have a camera that I need to match to the MGLView.
I would like to know what should be a good starting point to do this with mapboxgl design in mind.
The text was updated successfully, but these errors were encountered: