Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

how to save photo from native.newMapView()
Started by pcschoolleo Apr 13 2016 01:11 AM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

pcschoolleo

[GLOBAL: userInfoPane.html]
pcschoolleo
  • Enthusiast

  • 35 posts
  • Corona SDK

i use native.newMapView() to get a map

i want to save whole screen including map

i use

display.capture()

display.save()

display.captureScreen( true )

all three function,it can save screen,but can not save map.

how do i save map to photo?

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,042 posts
  • Enterprise

native.* API calls are not part of the OpenGL canvas and cannot be captured with our display.* API's

 

Rob



[TOPIC: post.html]
#3

AidanWolf

[GLOBAL: userInfoPane.html]
AidanWolf
  • Enthusiast

  • 92 posts
  • Corona SDK

Though an easy workaround is using the Google Static Maps API.

 

Just take the data from your mapView, send it to the API, and get an image of the map back.

 

https://developers.google.com/maps/documentation/static-maps/

 

I believe you get 1,000 requests/day for free




[topic_controls]
[/topic_controls]