flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reade (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35309) Google Maps does not work - TypeError
Date Fri, 26 May 2017 10:29:04 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16026122#comment-16026122
] 

David Reade commented on FLEX-35309:
------------------------------------

I did some research and found https://github.com/tuarua/WebViewANE which does just that -
a fully integrated Chrome browser in an ANE. I tried to create my own test project and managed
to load Google Maps no problem. Even the "experimental" version of the API works using this
method. The only downside is you have to include the framework DLLs with the main application,
which increases the file size of the installer by 60MB+!!

> Google Maps does not work - TypeError
> -------------------------------------
>
>                 Key: FLEX-35309
>                 URL: https://issues.apache.org/jira/browse/FLEX-35309
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: HTML Control
>    Affects Versions: Apache Flex 4.16.0
>            Reporter: David Reade
>            Priority: Blocker
>
> <?xml version="1.0" encoding="utf-8"?>
> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
> 					   xmlns:s="library://ns.adobe.com/flex/spark" 
> 					   xmlns:mx="library://ns.adobe.com/flex/mx"
> 					   creationComplete="maximize()">
> 	<mx:HTML location="https://developers.google.com/maps/documentation/javascript/examples/map-simple"
width="100%" height="100%"/>
> </s:WindowedApplication>
> The code above should load the Google Maps API simple-example but the console reports:
> TypeError: Result of expression 'Vm.bind' [undefined] is not a function.
>  at https://developers.google.com/_static/430ba28802/js/script_foot_closure.js : 269
>  at https://developers.google.com/_static/430ba28802/js/script_foot.js : 310
>  at https://developers.google.com/maps/documentation/javascript/examples/map-simple :
938
> TypeError: Result of expression 'Z.Fn.bind' [undefined] is not a function.
>  at https://developers.google.com/_static/430ba28802/js/script_foot_closure.js : 663
>  at https://developers.google.com/maps/documentation/javascript/examples/map-simple :
235
>  at https://developers.google.com/_static/430ba28802/js/jquery-bundle.js : 41
>  at https://developers.google.com/_static/430ba28802/js/jquery-bundle.js : 41
>  at https://developers.google.com/_static/430ba28802/js/jquery-bundle.js : 41
> s at https://developers.google.com/_static/430ba28802/js/jquery-bundle.js : 40
> TypeError: Result of expression 'a.apply' [undefined] is not a function.
>  at https://maps.googleapis.com/maps/api/js?key=AIzaSyDIJ9XX2ZvRKCJcFRrl-lRanEtFUow4piM&callback=initMap
: 32
>  at https://maps.googleapis.com/maps-api-v3/api/js/29/0/common.js : 169
>  at https://maps.googleapis.com/maps-api-v3/api/js/29/0/common.js : 45
> TypeError: Result of expression 'a.V.unbindAll' [undefined] is not a function.
>  at https://maps.googleapis.com/maps-api-v3/api/js/29/0/controls.js : 92
>  at https://maps.googleapis.com/maps-api-v3/api/js/29/0/controls.js : 95
>  at https://maps.googleapis.com/maps-api-v3/api/js/29/0/controls.js : 134
>  at https://maps.googleapis.com/maps/api/js?key=AIzaSyDIJ9XX2ZvRKCJcFRrl-lRanEtFUow4piM&callback=initMap
: 121
> The same issue occurs in Flex 4.6 with AIR SDK 25.0.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message