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

Map layer #7378

Open
Yousef00109 opened this issue Nov 15, 2024 · 4 comments
Open

Map layer #7378

Yousef00109 opened this issue Nov 15, 2024 · 4 comments

Comments

@Yousef00109
Copy link

Dear Team,

I am currently working on developing a digital twin and would like to integrate a map layer into my model. Could you please guide me through the steps required for this?

Should I geolocate my model, and if so, how can I achieve this?
How can I accurately position my model at the correct location on the map?

Thank you for your support.

@ben-polinsky
Copy link
Contributor

@mdastous-bentley can you help?

@Yousef00109
Copy link
Author

Sorry i mean Background Map, i want to show the map below my Moodle.

@aruniverse
Copy link
Member

Hi Yousuef,

You should definitely geolocate your iModel, here's some documentation you can refer to for best practices regarding that.

Re setting the background map, iTwin.js provides some default background map providers (Bing and MapBox) and all you need to do is provide an API key for it via MapLayerOptions. If you are using the iTwin Viewer React component, this is as simple as providing the mapLayerOptions prop to the <Viewer /> component. If you are not, then please provide the keys via IModelApp.startup({ mapLayersOptions }), see

@Yousef00109
Copy link
Author

Hello,

Thanks for your reply. Please note that I am using iTwinPlatefom. It would be more efficient if you gave me the steps to do this on this platform.

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

3 participants