This is a continuation of the discussion from the API page.
http://developer.anscamobile.com/reference/maps [import]uid: 7559 topic_id: 24293 reply_id: 324293[/import]
+1 for android maps.
+1 for map touch events – I really need to know when the user touched a pin, or even changed the view area… Not knowing what area the map is currently even pointing at, or if the user tapped a pin is pretty rough…
Any idea when android maps, and map touch events might be supported? [import]uid: 54750 topic_id: 24293 reply_id: 98842[/import]
yes, would be nice to let the user set a marker, and get that position (like pin down there home etc). [import]uid: 90610 topic_id: 24293 reply_id: 103034[/import]
+1 Android maps [import]uid: 8697 topic_id: 24293 reply_id: 103412[/import]
+1 Android maps
(Why not support Android platform?) [import]uid: 38309 topic_id: 24293 reply_id: 108104[/import]
I need support for Android platform, any time soon? [import]uid: 147167 topic_id: 24293 reply_id: 108499[/import]
Also a mush have for Android!
Question though. Is there a way to turn off the user’s current location. I have a simple map that pops up with a set location to come on screen, but it automatically asks me if I want to “app Would like to use your current location”. Then it crashes the app. But it only asks 1 time and I don’t see where a setting is to turn it off. Even if i turn off and on the app again, it won’t ask me again and it works perfectly with no crashes when I restart the app.
I’m not using :getUserLocation()
Any ideas?
--MAP VIEW
function ShowOnMap ()
myMap = native.newMapView( centerX+34, centerY-107, 180, 160 )
myMap.mapType = "standard"
localGroup:insert(myMap)
local latitude, longitude = myMap:getAddressLocation( "Chicago" )
myMap:setCenter( latitude, longitude )
myMap:addMarker( latitude, longitude, { title="MarkerTitle", subtitle="Subtitle" })
end
Using build 807 [import]uid: 90878 topic_id: 24293 reply_id: 111690[/import]
I can’t comment directly on the Map API as I have never used it. However the location setting is under Settings->Location Services. There it lists all apps that have requested it and allows you to turn each one on or off. [import]uid: 56820 topic_id: 24293 reply_id: 111691[/import]
Hi,
Thanks for the reply. Even if the user has the Settings->Locations Services turned off, it still asks, which 1, is kind of strange. 2., Once you close that dialog box, the app still crashes because of it. So if there’s a way to keep that from coming up in the first place, that’d be awesome! [import]uid: 90878 topic_id: 24293 reply_id: 111699[/import]
I’m only guessing but I will go out on a limb and say if you include the maps API in your app it will always ask if the app is allowed to use your current location. It just comes with the territory. I know being able to disable that would be a quick fix, however figuring out the actual reason for the crash is probably better.
Have you attached the device to your Mac and checked the errors in the Xcode console from the crash? This could be a Corona bug, but they would need more details. Try to get some information about the crash and post it. [import]uid: 56820 topic_id: 24293 reply_id: 111727[/import]
@gregory, There is no way to turn off the prompt if you include maps in your app.
Does your app crash if you “allow” your location or only when you say “don’t’ allow”? If it’s doing it after you you say don’t allow, it may be crashing because your app is trying to use mapping feature after it was disallowed. We need to add an API call or listener callback showing the user does not allow location services.
After you disallowed Location Services for you app, you should be able to go into Device Settings and enable it again.
Tom [import]uid: 7559 topic_id: 24293 reply_id: 111746[/import]
Can someone tell me the proper way to remove a .newMapView?
I’ve tried these but nothing seems to work.
[code]
myMap:remove()
myMap = nil
–and
myMap:removeSelf()
[import]uid: 90878 topic_id: 24293 reply_id: 112220[/import]
Is there a date we could expect maps to work on Android?
Thanks! [import]uid: 151732 topic_id: 24293 reply_id: 112236[/import]
ive got this same issue at the moment, im surprised that it doesnt allow better for the user to click disallow. [import]uid: 75844 topic_id: 24293 reply_id: 112994[/import]
When the map will be implemeted on Android ? [import]uid: 138389 topic_id: 24293 reply_id: 116671[/import]
i wouldnt use it even if it was, the UI maps are really buggy. Just use a web overlay then it will work on both. [import]uid: 75844 topic_id: 24293 reply_id: 116752[/import]
I just had an app rejected because of using the map feature in Corona SDK.
This is what Apple had to say about it:
We found that your app, and/or its metadata, displays images provided by Google Maps without the associated Google branding.
Google requires their logo and branding to be retained on all their map images; this requirement is reflected in the App Store Review Guidelines. For reference, you can view Google’s terms of service.
Anybody know a way around this?
Jay [import]uid: 9440 topic_id: 24293 reply_id: 121895[/import]
Weird issue.
BTW why your map does not display the Google brand over it (at the bottom-left side of its map view normally)?
Rodrigo. [import]uid: 89165 topic_id: 24293 reply_id: 121902[/import]
Rodrigo, I have no idea if Corona SDK is stripping the Google watermark or what. I’m just making a maps call like the API says and it seems to work fine – except it’s apparently in violation of Google’s TOS. Very bad news for me (and anyone who’s using the maps feature, maybe).
Jay
[import]uid: 9440 topic_id: 24293 reply_id: 121904[/import]
Jay,
I understood you. I only cannot understand the why the Google brand is not showing up there on your app. :S
And I am astonished because I do use one map view into one of my apps and I just opened it up and am able to see the Google brand there where I said above. So it is really “weird” and I would like to know if some "new"feature or bug correction did something to broken on the maps btw.
Rodrigo. [import]uid: 89165 topic_id: 24293 reply_id: 121906[/import]