Как написать GeoRSS, который можно использовать для "google.maps.KmlLayer" - PullRequest
1 голос
/ 09 июля 2010
  1. атом :

    <title>Example Feed</title>
    <subtitle>A subtitle.</subtitle>
    <link href="http://example.org/feed/" rel="self" />
    <link href="http://example.org/" />
    <id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>
    <updated>2003-12-13T18:30:02Z</updated>
    <author>
        <name>John Doe</name>
        <email>johndoe@example.com</email>
    </author>
    
    <entry>
        <title>Atom-Powered Robots Run Amok</title>
        <link href="http://example.org/2003/12/13/atom03" />
        <link rel="alternate" type="text/html" href="http://example.org/2003/12/13/atom03.html"/>
        <link rel="edit" href="http://example.org/2003/12/13/atom03/edit"/>
        <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
        <updated>2003-12-13T18:30:02Z</updated>
        <summary>Some text.</summary>
    </entry>
    

  2. GeoRSS :

    45.256 -71.92 </ georss: точка>

  3. google.maps.KmlLayer:

    var myLatlng = new google.maps.LatLng (49.496675, -102.65625);var myOptions = {zoom: 4, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP}

    var map = new google.maps.Map (document.getElementById ("map_canvas"), myOptions);

    var georssLayer = new google.maps.KmlLayer ('http://api.flickr.com/services/feeds/geo/?g=322338@N20〈=en-us&format=feed-georss'); georssLayer.setMap (map);

Как создать полезный GeoRSS, которыйсодержит 1 и 2 для 3?

...