开发者

flash loading "my maps" rss from google maps

开发者 https://www.devze.com 2022-12-14 08:25 出处:网络
I creating a flash app that loads a RSS of a plublic map with a custom route path and draws lines from the coordinates on a Away3D Sphere.

I creating a flash app that loads a RSS of a plublic map with a custom route path and draws lines from the coordinates on a Away3D Sphere.

It开发者_高级运维 works preety well when I'm testing locally, but when I publish online, the app can't load the RSS. I think Google Maps disable access from other domains.

Does anyone knows another way to access this map RSS directly from google? Now to fix this, I'm hosting the RSS.

Thanks in advance

Marlus


It may be easiest for you to simply implement a PHP proxy on the server that retrieves the RSS file for you. A concise article explains it here. I don't recall definitively, but I don't think Google Maps keeps a crossdomain file that would let you get at this feed otherwise.


SOLVED

changed the RSS url on the xml_proxy.php file:

<?php

  $url = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&output=georss&msid=".$_GET['msid'];
  $data = file_get_contents($url);
  print $data;

?>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号