mapview issue?

businessname = "Eastside Bistro"  
address = "12001 Avalon Lake Drive, Ste. E2"  
  
myMap = native.newMapView(0,180,display.contentWidth,200)  
myMap.mapType = "hybrid"  
myMap.x = \_W/2  
latitude, longitude = myMap:getAddressLocation(address)  
myMap:setCenter(latitude, longitude)  
myMap:addMarker(latitude,longitude,{title=""..businessname})  

works perfectly in the simulator (Xcode) … installed on my device. app works fine til I call this screen and this screen crashes the app… If I remove the map code above the app loads the screen and show the content minus the map of course…

Matt
[import]uid: 18783 topic_id: 34560 reply_id: 334560[/import]

so solved… apparently addMarker does not like leaving out the subtitle… once I put that in even with just double quotes… it works. [import]uid: 18783 topic_id: 34560 reply_id: 137452[/import]

so solved… apparently addMarker does not like leaving out the subtitle… once I put that in even with just double quotes… it works. [import]uid: 18783 topic_id: 34560 reply_id: 137452[/import]

What happens if you leave out the addMarker? I am running into the same problem with the app crashing on the screens with newMapViews. I’m not adding markers and the app just crashes when I go to a screen with the map. Even the sample code for MapView provided by Corona shuts down when I launch the app. Everything works fine in the simulator and Xcode Simulator. But when I build for iOS device, the MapView crashes the entire app.

Any help would be appreciated.

David [import]uid: 9042 topic_id: 34560 reply_id: 141018[/import]

Nevermind my last post. Tom at Corona got back to me and the latest Daily Build (1020) is working fine. Am now able to view my maps on my device.

David [import]uid: 9042 topic_id: 34560 reply_id: 141609[/import]

What happens if you leave out the addMarker? I am running into the same problem with the app crashing on the screens with newMapViews. I’m not adding markers and the app just crashes when I go to a screen with the map. Even the sample code for MapView provided by Corona shuts down when I launch the app. Everything works fine in the simulator and Xcode Simulator. But when I build for iOS device, the MapView crashes the entire app.

Any help would be appreciated.

David [import]uid: 9042 topic_id: 34560 reply_id: 141018[/import]

Nevermind my last post. Tom at Corona got back to me and the latest Daily Build (1020) is working fine. Am now able to view my maps on my device.

David [import]uid: 9042 topic_id: 34560 reply_id: 141609[/import]

Sorry, one question, does myMap:getAddressLocation work in your example?
I’m testing on iOS (xcode and device, built with dailybuild 1050) and currently, no matter what, myMap:getAddressLocation is always returning lat 0 lon 0.
I also tried with the MapView example in the corona examples folder… same thing [import]uid: 9158 topic_id: 34560 reply_id: 145728[/import]

Sorry, one question, does myMap:getAddressLocation work in your example?
I’m testing on iOS (xcode and device, built with dailybuild 1050) and currently, no matter what, myMap:getAddressLocation is always returning lat 0 lon 0.
I also tried with the MapView example in the corona examples folder… same thing [import]uid: 9158 topic_id: 34560 reply_id: 145728[/import]