google static maps and www Class.
Id like to get some textures from googles staticmap.
I’m doing this by calling for example:
http://maps.google.com/maps/api/staticmap?zoom=14&size=600x450&maptype=roadmap&markers=color:red||label:P|40.00000,8.50000&sensor=false
and in The editor this works.
But on the iphone the www class is telling me that this is a bad url, now i read in some threads that the www class does not work the same on all plattforms. But didn’t figure out how or how this could help me.
Does someone know how to get a google static map in unity as texture?
Hi.
I’m using the same API, and it work as a charm on iPhone iPad ?
url = "http://maps.google.com/maps/api/staticmap?center="+ iPhoneInput.lastLocation.latitude + "," + iPhoneInput.lastLocation.longitude + "&zoom=15&size=512x384&maptype=satellite&sensor=true";
google static maps and www Class.
Id like to get some textures from googles staticmap.
I’m doing this by calling for example:
http://maps.google.com/maps/api/staticmap?zoom=14&size=600x450&maptype=roadmap&markers=color:red||label:P|40.00000,8.50000&sensor=false
and in The editor this works.
But on the iphone the www class is telling me that this is a bad url, now i read in some threads that the www class does not work the same on all plattforms. But didn’t figure out how or how this could help me.
Does someone know how to get a google static map in unity as texture?
How do you make this work in editor ?
For me it dont work at all and bugs me with crossdomain.
Nub3h
June 24, 2013, 10:42am
4
Hey I’m having the exact same problem. Did you solve it eventually?
I’m also having a similar problem. The maps are correctly displayed in the editor, but not in the editor AND in Android devices, but not in iPad.
Maybe for some of you the problem is the API key (I tried with and without iOS enabled key, with and without specifying the bundle identifier).
Same problem here: Android and Editor works fine but not on iPad.
P.s: i’m created an iOS key for googlemaps static api in the developer console
I just released this https://www.assetstore.unity3d.com/#/content/13153
It works on Android/iOS, as well as standalone.
A video demo here: http://ignaciopecino.com/mapnav/mapnav.html
I hope it helps! Cheers.
Hi !! I’m having the same problem. Did you solve it?
dm_reflekt_1:
I’m also having a similar problem. The maps are correctly displayed in the editor, but not in the editor AND in Android devices, but not in iPad.
Maybe for some of you the problem is the API key (I tried with and without iOS enabled key, with and without specifying the bundle identifier).
I am having the same issue here!