# mapview issue?

**URL:** <https://forums.solar2d.com/t/mapview-issue/309583>\
**Category:** Other\
**Created:** [January 4, 2013, 12:01pm UTC](https://forums.solar2d.com/t/mapview-issue/309583 "2013-01-04T12:01:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattchapman](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@mattchapman](https://forums.solar2d.com/u/mattchapman)\
**Post date:** [January 4, 2013, 12:01pm UTC](https://forums.solar2d.com/t/mapview-issue/309583/1 "2013-01-04T12:01:17Z")

</div>

```auto
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]

---

<div class="post-metadata">

**Author:** ![mattchapman](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@mattchapman](https://forums.solar2d.com/u/mattchapman)\
**Post date:** [January 4, 2013, 5:43pm UTC](https://forums.solar2d.com/t/mapview-issue/309583/2 "2013-01-04T17:43:23Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![mattchapman](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@mattchapman](https://forums.solar2d.com/u/mattchapman)\
**Post date:** [January 4, 2013, 5:43pm UTC](https://forums.solar2d.com/t/mapview-issue/309583/3 "2013-01-04T17:43:23Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![krakapow](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/k/22d042/32.png) [@krakapow](https://forums.solar2d.com/u/krakapow)\
**Post date:** [January 30, 2013, 11:16pm UTC](https://forums.solar2d.com/t/mapview-issue/309583/4 "2013-01-30T23:16:09Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![krakapow](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/k/22d042/32.png) [@krakapow](https://forums.solar2d.com/u/krakapow)\
**Post date:** [February 4, 2013, 4:24pm UTC](https://forums.solar2d.com/t/mapview-issue/309583/5 "2013-02-04T16:24:06Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![krakapow](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/k/22d042/32.png) [@krakapow](https://forums.solar2d.com/u/krakapow)\
**Post date:** [January 30, 2013, 11:16pm UTC](https://forums.solar2d.com/t/mapview-issue/309583/6 "2013-01-30T23:16:09Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![krakapow](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/k/22d042/32.png) [@krakapow](https://forums.solar2d.com/u/krakapow)\
**Post date:** [February 4, 2013, 4:24pm UTC](https://forums.solar2d.com/t/mapview-issue/309583/7 "2013-02-04T16:24:06Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![PXL\_artificer](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@PXL\_artificer](https://forums.solar2d.com/u/PXL_artificer)\
**Post date:** [March 12, 2013, 2:21am UTC](https://forums.solar2d.com/t/mapview-issue/309583/8 "2013-03-12T02:21:12Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![PXL\_artificer](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@PXL\_artificer](https://forums.solar2d.com/u/PXL_artificer)\
**Post date:** [March 12, 2013, 2:21am UTC](https://forums.solar2d.com/t/mapview-issue/309583/9 "2013-03-12T02:21:12Z")

</div>

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]
