Topic: Suggested tutorial for custom markers on a map.
What would you suggest I should look at to place my own custom markers on a map?
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Suggested tutorial for custom markers on a map.
What would you suggest I should look at to place my own custom markers on a map?
Hello.
It depends on what you mean «my own custom markers».
1. http://infinity-code.com/atlas/online-m … Click.html
2. http://infinity-code.com/atlas/online-m … ample.html
3. http://infinity-code.com/atlas/online-m … ample.html
4. Custom Markers example scene.
Thanks for those links, I'll defiantly check them out.
Also as dictated from the project business functional spec, the custom markers need to be clickable and launch context menu's of their own, popping up offset of the clicked marker location. I was considering using a prefab, where I can isolate these objects/functions into a gameobject, which I can use as the marker.
This prefab would contain:
2D image of the marker.
Text label.
Child game objects for the context menu.
From what I've seen, only the AddMarker3D appears to accept game objects as a parameter. I am using a Tile Set map, to that I can use the 3D features, as needed.
So could I use that to place a prefab onto the map, to serve as a marker using this command?
Would you consider another option that might work better with your online maps?
Thanks again for you previous response.
First of all, look at UIBubblePopup example scene.
Is this what you are looking for?
Even if not, it will show you how to position complex UI elements on the map.
With a little code modification, this popup can be your context menu.
If your prefab does not contain UI elements, you can use it.
Thanks for the pointers.
After looking at the examples, what I am trying to do is place custom markers on a map, like in your "Custom Markers" scene. Then when you click on them, they display a popup context menu, similar to your UIBubblePopup scene.
So I just need to combine the code concepts from these two examples and I should be OK.
Cheers.
Infinity Code Forum → Online Maps Help → Suggested tutorial for custom markers on a map.
Powered by PunBB, supported by Informer Technologies, Inc.