You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Deepak MS <me...@gmail.com> on 2014/10/28 10:41:05 UTC

Google Map ANE Issue on Flex AIR iPad App

Hello,
I have used following ANE for map in my ipad app(Flex 4.13, AIR 15, iOS 8):
http://code.google.com/p/air-maps-ane/

It works just fine. But only problem (Show stopper) here is that, when map
is active, and when we click on callout buttons, the call out button
contents are behind the map component.

This is how it is supposed to show the call out button content's:
http://snag.gy/B8p1K.jpg

But when map is active, this is how it shows up:
http://snag.gy/YeoHe.jpg

Map uses a viewPort, which is Rectangle. I think it always floats on top of
AIR app.

Kindly let me know if there a way to move the map 'behind' somehow?

Cheers!

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Deepak MS <me...@gmail.com>.
HI Neverbirth,
I tried that ANE. It's still the same. Call out contents are behind the
map.

But I'll be using this ANE as most of the issues (especially app crash on
tapping user location icon) are resolved in this. Thanks.

On Wed, Oct 29, 2014 at 2:25 AM, Neverbirth <ne...@gmail.com> wrote:

> Give a try to this other ANE:
>
> https://code.google.com/p/nativemaps-ane/
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8536.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Neverbirth <ne...@gmail.com>.
Give a try to this other ANE:

https://code.google.com/p/nativemaps-ane/



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8536.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Deepak MS <me...@gmail.com>.
Sure. Thanks again.

Cheers!

On Wed, Nov 19, 2014 at 3:43 PM, Héctor A <ne...@gmail.com> wrote:

> The update will be out during this next week, so I'll check the method for
> sure before then.
>
> 2014年11月19日水曜日、Deepak MS<me...@gmail.com>さんは書きました:
>
> > Sure. No worries. I'll wait.
> >
> > Thanks.
> >
> > Meanwhile, I'll see if I can tweak something.
> >
> > On Wed, Nov 19, 2014 at 3:07 PM, Neverbirth <neverbirth@gmail.com
> > <javascript:;>> wrote:
> >
> > > I'm out of my home pc for three days, I'll try to look at it this
> > weekend,
> > > but no promises since I have a lot of pending work.
> > >
> > > An update of the ANE is planned soon.
> > >
> > > 2014年11月19日水曜日、Deepak MS [via Apache Flex Users]<
> > > ml-node+s2333346n8817h80@n4.nabble.com <javascript:;>>さんは書きました:
> > >
> > > > Hi Neverbirth,
> > > > I was trying to use drawViewPortToBitmapData.
> > > > But not able to get it work right.
> > > >
> > > > I am trying to take a screenshot and open that image in email, as
> shown
> > > > here: http://pbrd.co/11s3Nux
> > > >
> > > > Code:
> > > > //method under myMapComponent to get bitmap data
> > > > public function getMapBitmapData():BitmapData
> > > >             {
> > > >                 var bitmapData:BitmapData = new
> > > >
> > >
> >
> BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
> > > >
> > > >                 if(map)
> > > >                 {
> > > >                     map.drawViewPortToBitmapData(bitmapData);
> > > >                 }
> > > >                 return bitmapData;
> > > >             }
> > > >
> > > >
> > > > // on click of 'Email' button
> > > > var pngSource:BitmapData = new
> > > >
> > >
> >
> BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
> > > >
> > > > pngSource = myMapComponent.getMapBitmapData();
> > > >
> > > >
> > > > //code to attach the image and open email client
> > > > var file:File =
> > > > File.applicationStorageDirectory.resolvePath("screenshot.png");
> > > >                     var extension:ScreenShot = new ScreenShot();
> > > >                     extension.getScreenShotPNG(file.nativePath,
> > > > pngSource);
> > > >
> > > > email.removeEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
> > > > handleMailComposerEvent);
> > > >
> > > > email.addEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
> > > > handleMailComposerEvent);
> > > >                     var attachmentStr:String = file.nativePath + "|"
> +
> > > > 'image/png'+ "|" + 'screenshot.png';
> > > >
> > > >                     email.sendMail(model.selectedViewLabel, "",
> > > >                         "",
> > > >                         "",
> > > >                         "",[attachmentStr]);
> > > >
> > > >
> > > > I think there is some issue with setting up width\height. But I'm not
> > > sure
> > > > what and where should I be changing it.
> > > >
> > > > Kindly let me know if there is a way.
> > > >
> > > >
> > > >
> > > > On Wed, Oct 29, 2014 at 7:31 PM, Neverbirth <[hidden email]
> > > > <http://user/SendEmail.jtp?type=node&node=8817&i=0>> wrote:
> > > >
> > > > > Yes, sorry for that. I submitted my reply and then realized I
> > > > misunderstood
> > > > > the problem.
> > > > >
> > > > > When using an ANE the view will always be placed over your Flash
> > > > content.
> > > > > The Maps ANE has a drawViewPortToBitmapData which may help you,
> I've
> > > > never
> > > > > used it myself.
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > >
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8542.html
> > > > > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> > > > >
> > > >
> > > >
> > > > ------------------------------
> > > >  If you reply to this email, your message will be added to the
> > discussion
> > > > below:
> > > >
> > > >
> > >
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8817.html
> > > >  To unsubscribe from Google Map ANE Issue on Flex AIR iPad App, click
> > > here
> > > > <
> > >
> >
> http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=8523&code=bmV2ZXJiaXJ0aEBnbWFpbC5jb218ODUyM3wxMjc3NjY2NTIw
> > > >
> > > > .
> > > > NAML
> > > > <
> > >
> >
> http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8818.html
> > > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> > >
> >
>

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Héctor A <ne...@gmail.com>.
The update will be out during this next week, so I'll check the method for
sure before then.

2014年11月19日水曜日、Deepak MS<me...@gmail.com>さんは書きました:

> Sure. No worries. I'll wait.
>
> Thanks.
>
> Meanwhile, I'll see if I can tweak something.
>
> On Wed, Nov 19, 2014 at 3:07 PM, Neverbirth <neverbirth@gmail.com
> <javascript:;>> wrote:
>
> > I'm out of my home pc for three days, I'll try to look at it this
> weekend,
> > but no promises since I have a lot of pending work.
> >
> > An update of the ANE is planned soon.
> >
> > 2014年11月19日水曜日、Deepak MS [via Apache Flex Users]<
> > ml-node+s2333346n8817h80@n4.nabble.com <javascript:;>>さんは書きました:
> >
> > > Hi Neverbirth,
> > > I was trying to use drawViewPortToBitmapData.
> > > But not able to get it work right.
> > >
> > > I am trying to take a screenshot and open that image in email, as shown
> > > here: http://pbrd.co/11s3Nux
> > >
> > > Code:
> > > //method under myMapComponent to get bitmap data
> > > public function getMapBitmapData():BitmapData
> > >             {
> > >                 var bitmapData:BitmapData = new
> > >
> >
> BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
> > >
> > >                 if(map)
> > >                 {
> > >                     map.drawViewPortToBitmapData(bitmapData);
> > >                 }
> > >                 return bitmapData;
> > >             }
> > >
> > >
> > > // on click of 'Email' button
> > > var pngSource:BitmapData = new
> > >
> >
> BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
> > >
> > > pngSource = myMapComponent.getMapBitmapData();
> > >
> > >
> > > //code to attach the image and open email client
> > > var file:File =
> > > File.applicationStorageDirectory.resolvePath("screenshot.png");
> > >                     var extension:ScreenShot = new ScreenShot();
> > >                     extension.getScreenShotPNG(file.nativePath,
> > > pngSource);
> > >
> > > email.removeEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
> > > handleMailComposerEvent);
> > >
> > > email.addEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
> > > handleMailComposerEvent);
> > >                     var attachmentStr:String = file.nativePath + "|" +
> > > 'image/png'+ "|" + 'screenshot.png';
> > >
> > >                     email.sendMail(model.selectedViewLabel, "",
> > >                         "",
> > >                         "",
> > >                         "",[attachmentStr]);
> > >
> > >
> > > I think there is some issue with setting up width\height. But I'm not
> > sure
> > > what and where should I be changing it.
> > >
> > > Kindly let me know if there is a way.
> > >
> > >
> > >
> > > On Wed, Oct 29, 2014 at 7:31 PM, Neverbirth <[hidden email]
> > > <http://user/SendEmail.jtp?type=node&node=8817&i=0>> wrote:
> > >
> > > > Yes, sorry for that. I submitted my reply and then realized I
> > > misunderstood
> > > > the problem.
> > > >
> > > > When using an ANE the view will always be placed over your Flash
> > > content.
> > > > The Maps ANE has a drawViewPortToBitmapData which may help you, I've
> > > never
> > > > used it myself.
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8542.html
> > > > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> > > >
> > >
> > >
> > > ------------------------------
> > >  If you reply to this email, your message will be added to the
> discussion
> > > below:
> > >
> > >
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8817.html
> > >  To unsubscribe from Google Map ANE Issue on Flex AIR iPad App, click
> > here
> > > <
> >
> http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=8523&code=bmV2ZXJiaXJ0aEBnbWFpbC5jb218ODUyM3wxMjc3NjY2NTIw
> > >
> > > .
> > > NAML
> > > <
> >
> http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > >
> > >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8818.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Deepak MS <me...@gmail.com>.
Sure. No worries. I'll wait.

Thanks.

Meanwhile, I'll see if I can tweak something.

On Wed, Nov 19, 2014 at 3:07 PM, Neverbirth <ne...@gmail.com> wrote:

> I'm out of my home pc for three days, I'll try to look at it this weekend,
> but no promises since I have a lot of pending work.
>
> An update of the ANE is planned soon.
>
> 2014年11月19日水曜日、Deepak MS [via Apache Flex Users]<
> ml-node+s2333346n8817h80@n4.nabble.com>さんは書きました:
>
> > Hi Neverbirth,
> > I was trying to use drawViewPortToBitmapData.
> > But not able to get it work right.
> >
> > I am trying to take a screenshot and open that image in email, as shown
> > here: http://pbrd.co/11s3Nux
> >
> > Code:
> > //method under myMapComponent to get bitmap data
> > public function getMapBitmapData():BitmapData
> >             {
> >                 var bitmapData:BitmapData = new
> >
> BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
> >
> >                 if(map)
> >                 {
> >                     map.drawViewPortToBitmapData(bitmapData);
> >                 }
> >                 return bitmapData;
> >             }
> >
> >
> > // on click of 'Email' button
> > var pngSource:BitmapData = new
> >
> BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
> >
> > pngSource = myMapComponent.getMapBitmapData();
> >
> >
> > //code to attach the image and open email client
> > var file:File =
> > File.applicationStorageDirectory.resolvePath("screenshot.png");
> >                     var extension:ScreenShot = new ScreenShot();
> >                     extension.getScreenShotPNG(file.nativePath,
> > pngSource);
> >
> > email.removeEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
> > handleMailComposerEvent);
> >
> > email.addEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
> > handleMailComposerEvent);
> >                     var attachmentStr:String = file.nativePath + "|" +
> > 'image/png'+ "|" + 'screenshot.png';
> >
> >                     email.sendMail(model.selectedViewLabel, "",
> >                         "",
> >                         "",
> >                         "",[attachmentStr]);
> >
> >
> > I think there is some issue with setting up width\height. But I'm not
> sure
> > what and where should I be changing it.
> >
> > Kindly let me know if there is a way.
> >
> >
> >
> > On Wed, Oct 29, 2014 at 7:31 PM, Neverbirth <[hidden email]
> > <http://user/SendEmail.jtp?type=node&node=8817&i=0>> wrote:
> >
> > > Yes, sorry for that. I submitted my reply and then realized I
> > misunderstood
> > > the problem.
> > >
> > > When using an ANE the view will always be placed over your Flash
> > content.
> > > The Maps ANE has a drawViewPortToBitmapData which may help you, I've
> > never
> > > used it myself.
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8542.html
> > > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8817.html
> >  To unsubscribe from Google Map ANE Issue on Flex AIR iPad App, click
> here
> > <
> http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=8523&code=bmV2ZXJiaXJ0aEBnbWFpbC5jb218ODUyM3wxMjc3NjY2NTIw
> >
> > .
> > NAML
> > <
> http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8818.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Neverbirth <ne...@gmail.com>.
I'm out of my home pc for three days, I'll try to look at it this weekend,
but no promises since I have a lot of pending work.

An update of the ANE is planned soon.

2014年11月19日水曜日、Deepak MS [via Apache Flex Users]<
ml-node+s2333346n8817h80@n4.nabble.com>さんは書きました:

> Hi Neverbirth,
> I was trying to use drawViewPortToBitmapData.
> But not able to get it work right.
>
> I am trying to take a screenshot and open that image in email, as shown
> here: http://pbrd.co/11s3Nux
>
> Code:
> //method under myMapComponent to get bitmap data
> public function getMapBitmapData():BitmapData
>             {
>                 var bitmapData:BitmapData = new
> BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
>
>                 if(map)
>                 {
>                     map.drawViewPortToBitmapData(bitmapData);
>                 }
>                 return bitmapData;
>             }
>
>
> // on click of 'Email' button
> var pngSource:BitmapData = new
> BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
>
> pngSource = myMapComponent.getMapBitmapData();
>
>
> //code to attach the image and open email client
> var file:File =
> File.applicationStorageDirectory.resolvePath("screenshot.png");
>                     var extension:ScreenShot = new ScreenShot();
>                     extension.getScreenShotPNG(file.nativePath,
> pngSource);
>
> email.removeEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
> handleMailComposerEvent);
>
> email.addEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
> handleMailComposerEvent);
>                     var attachmentStr:String = file.nativePath + "|" +
> 'image/png'+ "|" + 'screenshot.png';
>
>                     email.sendMail(model.selectedViewLabel, "",
>                         "",
>                         "",
>                         "",[attachmentStr]);
>
>
> I think there is some issue with setting up width\height. But I'm not sure
> what and where should I be changing it.
>
> Kindly let me know if there is a way.
>
>
>
> On Wed, Oct 29, 2014 at 7:31 PM, Neverbirth <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=8817&i=0>> wrote:
>
> > Yes, sorry for that. I submitted my reply and then realized I
> misunderstood
> > the problem.
> >
> > When using an ANE the view will always be placed over your Flash
> content.
> > The Maps ANE has a drawViewPortToBitmapData which may help you, I've
> never
> > used it myself.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8542.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8817.html
>  To unsubscribe from Google Map ANE Issue on Flex AIR iPad App, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=8523&code=bmV2ZXJiaXJ0aEBnbWFpbC5jb218ODUyM3wxMjc3NjY2NTIw>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8818.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Deepak MS <me...@gmail.com>.
Hi Neverbirth,
I was trying to use drawViewPortToBitmapData.
But not able to get it work right.

I am trying to take a screenshot and open that image in email, as shown
here: http://pbrd.co/11s3Nux

Code:
//method under myMapComponent to get bitmap data
public function getMapBitmapData():BitmapData
            {
                var bitmapData:BitmapData = new
BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
                if(map)
                {
                    map.drawViewPortToBitmapData(bitmapData);
                }
                return bitmapData;
            }


// on click of 'Email' button
var pngSource:BitmapData = new
BitmapData(FlexGlobals.topLevelApplication.width,FlexGlobals.topLevelApplication.height);
pngSource = myMapComponent.getMapBitmapData();


//code to attach the image and open email client
var file:File =
File.applicationStorageDirectory.resolvePath("screenshot.png");
                    var extension:ScreenShot = new ScreenShot();
                    extension.getScreenShotPNG(file.nativePath, pngSource);

email.removeEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
handleMailComposerEvent);

email.addEventListener(MailExtensionEvent.MAIL_COMPOSER_EVENT,
handleMailComposerEvent);
                    var attachmentStr:String = file.nativePath + "|" +
'image/png'+ "|" + 'screenshot.png';

                    email.sendMail(model.selectedViewLabel, "",
                        "",
                        "",
                        "",[attachmentStr]);


I think there is some issue with setting up width\height. But I'm not sure
what and where should I be changing it.

Kindly let me know if there is a way.



On Wed, Oct 29, 2014 at 7:31 PM, Neverbirth <ne...@gmail.com> wrote:

> Yes, sorry for that. I submitted my reply and then realized I misunderstood
> the problem.
>
> When using an ANE the view will always be placed over your Flash content.
> The Maps ANE has a drawViewPortToBitmapData which may help you, I've never
> used it myself.
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8542.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Neverbirth <ne...@gmail.com>.
Yes, sorry for that. I submitted my reply and then realized I misunderstood
the problem.

When using an ANE the view will always be placed over your Flash content.
The Maps ANE has a drawViewPortToBitmapData which may help you, I've never
used it myself.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Google-Map-ANE-Issue-on-Flex-AIR-iPad-App-tp8523p8542.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Deepak MS <me...@gmail.com>.
I think it's a native view which is not tied to any of the Flex\AIR
component. I'm not sure if taking a snapshot of the map is even possible,
as map isn't part of any of the component on the screen. getSnapShot might
just give blank image. However, I'll give it a try. If not, I'm planning to
hide the map completely when call out is open.

On Tue, Oct 28, 2014 at 8:32 PM, Subscriptions <subscriptions@leeburrows.com
> wrote:

> Assuming the viewport is a StageWebView (http://help.adobe.com/en_US/
> FlashPlatform/reference/actionscript/3/flash/media/StageWebView.html)
> there is no way to change the layout order (it always stays in front).
>
> A possible workaround would be to take a snapshot of the map (if thats
> possible with StageWebView) and show the bitmap instead of the actual map
> when the callout is active.
>
> Lee Burrows
> ActionScripter
>
>
> On 28/10/2014 09:41, Deepak MS wrote:
>
>> Hello,
>> I have used following ANE for map in my ipad app(Flex 4.13, AIR 15, iOS
>> 8):
>> http://code.google.com/p/air-maps-ane/
>>
>> It works just fine. But only problem (Show stopper) here is that, when map
>> is active, and when we click on callout buttons, the call out button
>> contents are behind the map component.
>>
>> This is how it is supposed to show the call out button content's:
>> http://snag.gy/B8p1K.jpg
>>
>> But when map is active, this is how it shows up:
>> http://snag.gy/YeoHe.jpg
>>
>> Map uses a viewPort, which is Rectangle. I think it always floats on top
>> of
>> AIR app.
>>
>> Kindly let me know if there a way to move the map 'behind' somehow?
>>
>> Cheers!
>>
>>
>

Re: Google Map ANE Issue on Flex AIR iPad App

Posted by Subscriptions <su...@leeburrows.com>.
Assuming the viewport is a StageWebView 
(http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/StageWebView.html) 
there is no way to change the layout order (it always stays in front).

A possible workaround would be to take a snapshot of the map (if thats 
possible with StageWebView) and show the bitmap instead of the actual 
map when the callout is active.

Lee Burrows
ActionScripter

On 28/10/2014 09:41, Deepak MS wrote:
> Hello,
> I have used following ANE for map in my ipad app(Flex 4.13, AIR 15, iOS 8):
> http://code.google.com/p/air-maps-ane/
>
> It works just fine. But only problem (Show stopper) here is that, when map
> is active, and when we click on callout buttons, the call out button
> contents are behind the map component.
>
> This is how it is supposed to show the call out button content's:
> http://snag.gy/B8p1K.jpg
>
> But when map is active, this is how it shows up:
> http://snag.gy/YeoHe.jpg
>
> Map uses a viewPort, which is Rectangle. I think it always floats on top of
> AIR app.
>
> Kindly let me know if there a way to move the map 'behind' somehow?
>
> Cheers!
>