2017-05-21 13 views
0

私は非常に基本的なことをやろうとしています - 外部のJSファイルも含めて、これを動作させることはできません。限り、私はconfig.xmlに含めて試してみたTizen Webアプリケーションで外部のjavascriptファイルを読み込めません

関連するHTML

<head> 
<script src="https://openlayers.org/en/v4.1.1/build/ol.js"></script> 
</head> 

config.xmlの

<?xml version="1.0" encoding="UTF-8"?> 
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/dezedan" version="1.0.0" viewmodes="maximized"> 
    <access origin="*" subdomains="true"/> 
    <access origin="https://openlayers.org/" subdomains="true"/> 
    <tizen:application id="iFnT8pQIzT.dezedan" package="iFnT8pQIzT" required_version="3.0"/> 
    <content src="index.html"/> 
    <feature name="http://tizen.org/feature/screen.size.all"/> 
    <icon src="icon.png"/> 
    <name>test</name> 
    <tizen:privilege name="http://tizen.org/privilege/internet"/> 
    <tizen:privilege name="http://tizen.org/privilege/application.launch"/> 
    <tizen:profile name="wearable"/> 
</widget> 

もの(失敗した)

<access origin="http://openlayers.org/" subdomains="true"/> 
<access origin="https://openlayers.org/en/v4.1.1/build/ol.js" subdomains="true"/> 
<access origin="http://openlayers.org/en/v4.1.1/build/ol.js" subdomains="true"/> 

私はこれまでにやっていることができますか?正しくうまくいく。明らかに私は何かが欠けている!誰かが私が行方不明になっていることを明らかにすることができれば、非常に感謝しています。

+0

そしてもちろん 'ghostery' プラグインのようにそれを阻止するものは何もありませんか? – kmansoor

+0

あなたはこれをチェックすることができますhttps://cdnjs.cloudflare.com/ajax/libs/ol3/4.1.1/ol.js –

+0

@iqbalhossain多くのありがとう、トリックでした。 2つのリンクの違いを教えてください。私は公式のドキュメントから使用しているリンクを引っ張った。 –

答えて

0

使用この

<script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.1.1/ol.js"</script> 

代わりの

<script src="https://openlayers.org/en/v4.1.1/build/ol.js"></script> 
関連する問題