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

Interactive Map In WorldScale AR #802

Closed
willychang21 opened this issue May 22, 2018 · 7 comments
Closed

Interactive Map In WorldScale AR #802

willychang21 opened this issue May 22, 2018 · 7 comments
Assignees
Labels

Comments

@willychang21
Copy link

willychang21 commented May 22, 2018

image
I wanted to make a Interactive annotations in WorldScale AR Map ,
For example ,I want to click some of the places in the map.
but the map is rendered by abstract map image ,not like InteractivesStyleVectorMap are using object.

@jordy-isaac
Copy link
Contributor

@willychang21 What sort of annotations are you wanting to set up? Have you tried placing POIs using the new Points of Interest feature

@willychang21
Copy link
Author

willychang21 commented May 22, 2018

@jordy-isaac
I had tried POI feature but only work in ar camera ,but I want to do like this in map
image
WorldScale AR scence map seems unable to do this.

p.s
#784 I checked the prefabmodifier.cs ,and I still can't change the object name by their poi name
sorry my english is poor ,There may be some misunderstandings in the translation process

@abhishektrip
Copy link
Contributor

@willychang21 You can use the same scripts in AR as well as non-AR use cases. You can use the scripts used in InteractiveVectorMap in your application in AR. You might have to tweak the interaction logic based on your applications use case.

For the object names, they are named using the type+FeatureID convention. Currently we don't have plans to change this naming convention since it will be very difficult to cover all possible ways of naming. You can change this by modifying the code for your own use.

_tempVectorEntity.GameObject.name = type + " - " + feature.Data.Id;

@willychang21
Copy link
Author

willychang21 commented May 23, 2018

@atripathi-mb
I tried to modifying the code in PrefabModifier


I changed to go.name = ve.Feature.Properties["name"].ToString();
But It didn't work ,I take this as a reference.

what did I miss??

@willychang21
Copy link
Author

@jordy-isaac
how do I add multiple custom tilesets as data sources in Unity ,because I only find the map id in abstract map, or you mean I should modify the abstractmap.cs??
image

@abhishektrip
Copy link
Contributor

@willychang21 the change you made should work. does your layer have a property called “name” ? This should match exactly with the property key.

You can enter multiple mapIDs separated by commas to fetch all of them.

@willychang21
Copy link
Author

willychang21 commented May 23, 2018

@atripathi-mb
thanks,I try it and it work!!

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

No branches or pull requests

3 participants