WorldKitベースのマッピングプロジェクトをホストするためにAppEngineアカウントを設定しましたhttp://worldkit.org/ほぼ 取得しました動作していますが、動作させることができない最後の1つは、マップ注釈機能です。これは、私が達成したいと思っていることの大部分です。最初は、WorldKitのダウンロードにいくつかのPHPスクリプトが付属しているためかもしれないと思いました。また、GAEがPHPをホストしていないことは知っていますが、デフォルトのパッケージから断片を体系的に削除してきました。 .html、.css、.xml、.js、画像ファイル、およびメインアプリケーションとして機能する単一の.swfのみ。奇妙な部分は、アノテーションがローカル開発サーバーを使用して完全に機能することですが、ライブでデプロイすると、アノテーションなしでマップが正常に表示されます。アノテーションはGeoRSSフィードを介してアプリケーションに提供されます。これは今のところ静的な読み取り専用ファイルとして提供していますが、将来的にライブで更新される可能性があります。これが私のapp.yamlです
application: parallelworldsmaps
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.css)
mime_type: text/css
static_files: static/\1
upload: static/(.*\.css)
- url: /(.*\.html)
mime_type: text/html
static_files: static/\1
upload: static/(.*\.html)
expiration: "1h"
- url: /(.*\.ico)
mime_type: image/x-icon
static_files: static/\1
upload: static/(.*\.ico)
expiration: "7d"
- url: /(.*\.js)
mime_type: text/javascript
static_files: static/\1
upload: static/(.*\.js)
- url: /(.*\.json)
mime_type: application/json
static_files: static/\1
upload: static/(.*\.json)
expiration: "1h"
- url: /(.*\.m4v)
mime_type: video/m4v
static_files: static/\1
upload: static/(.*\.m4v)
- url: /(.*\.mp4)
mime_type: video/mp4
static_files: static/\1
upload: static/(.*\.mp4)
- url: /(.*\.(ogg|oga))
mime_type: audio/ogg
static_files: static/\1
upload: static/(.*\.(ogg|oga))
- url: /(.*\.ogv)
mime_type: video/ogg
static_files: static/\1
upload: static/(.*\.ogv)
- url: /(.*\.otf)
mime_type: font/opentype
static_files: static/\1
upload: static/(.*\.otf)
- url: /(.*\.rss)
mime_type: application/rss+xml
static_files: static/\1
upload: static/(.*\.rss)
expiration: "1h"
- url: /(.*\.(svg|svgz))
mime_type: images/svg+xml
static_files: static/\1
upload: static/(.*\.(svg|svgz))
- url: /(.*\.swf)
mime_type: application/x-shockwave-flash
static_files: static/\1
upload: static/(.*\.swf)
- url: /(.*\.ttf)
mime_type: font/truetype
static_files: static/\1
upload: static/(.*\.ttf)
- url: /(.*\.txt)
mime_type: text/plain
static_files: static/\1
upload: static/(.*\.txt)
- url: /(.*\.webm)
mime_type: video/webm
static_files: static/\1
upload: static/(.*\.webm)
- url: /(.*\.xml)
mime_type: application/xml
static_files: static/\1
upload: static/(.*\.xml)
expiration: "1h"
# image files
- url: /(.*\.(bmp|gif|ico|jpeg|jpg|png))
static_files: static/\1
upload: static/(.*\.(bmp|gif|ico|jpeg|jpg|png))
# audio files
- url: /(.*\.(mid|midi|mp3|wav))
static_files: static/\1
upload: static/(.*\.(mid|midi|mp3|wav))
# windows files
- url: /(.*\.(doc|exe|ppt|rtf|xls))
static_files: static/\1
upload: static/(.*\.(doc|exe|ppt|rtf|xls))
# compressed files
- url: /(.*\.(bz2|gz|rar|tar|tgz|zip))
static_files: static/\1
upload: static/(.*\.(bz2|gz|rar|tar|tgz|zip))
# index files
- url: /(.+)/
static_files: static/\1/index.html
upload: static/(.+)/index.html
expiration: "15m"
- url: /(.+)
static_files: static/\1/index.html
upload: static/(.+)/index.html
expiration: "15m"
# site root
- url: /
static_files: static/index.html
upload: static/index.html
expiration: "15m"
- url: /
static_dir: static
私の静的ファイルはすべて、「静的」ディレクトリのサブフォルダに含まれています。アプリがどのように機能するかをもう少しよく理解するために、.swfオブジェクトはマップのレンダリングに使用する画像ファイルにアクセスします。次に、rssフィードにアクセスして、静的xmlファイルに作成し、.swfと同じディレクトリに配置した注釈をレンダリングします。RSSフィードには、座標、タイトル、説明、およびマップマーカーとして使用されるアイコンが含まれています。すべてのマップタイルは正しく表示されますが、どの注釈も正しく表示されません。これをローカルで再現する試みに基づくと、おそらく.swfが同じフォルダーにある.xmlファイルにアクセスできないことを意味します。他にどのような情報を提供できるかわかりませんが、ファイルが正しくアップロードされていないか、奇妙な権限がブロックされている可能性がありますか?それ'