Some other questions I have is trying to match the buildings to the map. As you can see from the screenshot the buildings are offset from where they should be.
This is the code I use to initialize the map (then I just add the building script).
//Set Map
gameObject.transform.position = new Vector3(1200, 0, -164);
OnlineMaps.instance.width = 4500;
OnlineMaps.instance.height = 2400;
OnlineMaps.instance.tilesetSize = new Vector2(4500, 2400);
// Set Zoom and Zoom Range
OnlineMaps.instance.zoomRange = new OnlineMapsRange(15, 20);
OnlineMaps.instance.zoom = 17;
//Position Map + Get Routes
OnlineMaps.instance.position = new Vector2(-2.990789f, 53.434323f);
The same happens when I use the google routing api to draw a line from start to end points.
I am currently using OpenStreetMaps as the provider but I have tried it with others and got the same results.
Finally, could I also ask where you got your building textures from that are shown in the asset store?
Regards
Brian
Post's attachments
screenshot.png 1000.12 kb, 209 downloads since 2017-09-29