hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium
Other
87 stars 26 forks source link

No map during type "MAP_TYPE_SATELLITE" #104

Closed oakleaf closed 6 years ago

oakleaf commented 6 years ago

For some reason, I cant change the map type. The type "MAP_TYPE_SATELLITE" nor the other ones except the hybrid works for me.

Also, when I zoom in, the quality doesnt change, it's like zoom level 10 is the best zoom level, and when I zoom in further nothing happens with the vectors so it's a really poor resolution when I go in a couple of notches.

No error messages or anything, just no map showing.

oakleaf commented 6 years ago

(I use the Exact same code as the app.js example and only change maptype to: "MAP_TYPE_SATELLITE")

hansemannn commented 6 years ago

Works for me. Make sure to call it on the module namespace, so if you are using var GMS = require('ti.googlemaps'), the constant is accessed via GMS.MAP_TYPE_SATELLITE. Also ensure to set it on creation and via the mapType property.

oakleaf commented 6 years ago

This is so weird, after creating a bunch of API keys and tested them all, the 4th worked.. So it was something to do with the API key. Thanks!