简体   繁体   English

解析错误Google Maps Blackberry 7上的javascript v3

[英]Parse error google maps javascript v3 on blackberry 7

I am working on worklight hybrid application in which I am using google maps v3 javascript API to load maps,whenver i am trying to load maps by using jquery ajax,I am getting syntax error:parse error in main.js on line no 26 The same ajax is working fine on other operating sytsem Android,BB10 This is only happening on blackberry 7(blackberry bold) 我正在工作灯混合应用程序中使用Google Maps v3 javascript API加载地图,当我尝试使用jquery ajax加载地图时,我收到语法错误:第26行的main.js中出现解析错误同一ajax在其他可操作的sytsem Android,BB10上都可以正常工作,这仅在黑莓7(黑莓黑体)上发生

Please see below my code for 请在下面查看我的代码

    $.ajax({
        url: 'https://maps.googleapis.com/maps/api/js?v=3.15&sensor=true&language=en&callback=loadmap',
        dataType: 'script',
        // Default to 10 seconds
        timeout: 10000,
        error: function () {

        },
        success:function(){
        }
    });

I 一世

According to Google Maps APIs FAQs , the Google Maps JavaScript API does not support the browser, or webview on BlackBerry 7. In fact, opening the map-simple page on BB7 simulator would get a blank page. 根据Google Maps API常见问题解答 ,Google Maps JavaScript API不支持BlackBerry 7上的浏览器或webview。实际上,在BB7模拟器上打开简单地图页面会得到一个空白页面。

In this case, consider using the staticmaps API instead. 在这种情况下,请考虑改用staticmaps API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM