On Jul 12, 10:23 am, ActivityPedia <[email protected]> wrote: > Thanks a lot ! > this solution works great. > I've been trying to use it (with rss2kml) on a yahoo pipe. > > My yahoo pipe with kml output is here > :http://pipes.yahoo.com/pipes/pipe.run?_id=05d488cc3681dcf152902bca437... > > if I copy the output in a file and try it : everything's fine. > If I try to access the url : it doesn't work. > Any one knows why ?
The Cross-domain restriction on XmlHttp. http://www.google.com/search?client=gmail&rls=gm&q=Cross-domain%20restriction%20on%20XmlHttp You need to use a proxy. -- Larry > Maybe the "&" caracter in url is doing something wrong ? > > here is my test :http://www.activitypedia.org/rss2map.php > if everything was correct, you should see purple AND green icons. > purple is for the copy of the kml, green is for the rss2kml directly > plugged on yahoo pipes. > > Has anyone managed to have this work with yahoo pipes ? > Thanks > Frank > > here is my example : > > <html> > <head> > <meta name="viewport" content="initial-scale=1.0, user-scalable=no" / > > <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> > <title>Google Maps JavaScript API v3 Example: KmlLayer KML</title> > <script type="text/javascript" src="http://maps.google.com/maps/api/js? > sensor=false"></script> > <script type="text/javascript"> > > // Convert RSS to KML, using selected icon > > function addKmlLayer(map, kmlUrl, iconUrl) { > > // need a timestamp to avoid caching > var timestamp = new Date().getTime(); > var url = 'http://www.activitypedia.org/rss2kml.php?'+ > 'time=' + timestamp + '&' + > 'url=' + kmlUrl + '&' + > 'icon=' + iconUrl; > var kml = new google.maps.KmlLayer(url, {map:map, > preserveViewport:true}); > return kml; > > } > > function initialize() { > var myOptions = { > zoom: 8, > center: new google.maps.LatLng(48.85071,2.311249), > mapTypeId: google.maps.MapTypeId.ROADMAP > } > > var map = new google.maps.Map(document.getElementById("map_canvas"), > myOptions); > > var shelters = > addKmlLayer(map, 'http://www.activitypedia.org/pipe.ashx', > 'http://google-maps-icons.googlecode.com/files/ > foodtruck.png'); > > var richmondTraffic = > addKmlLayer(map, 'http://pipes.yahoo.com/pipes/pipe.run? > _id=05d488cc3681dcf152902bca4373ccc7&_render=kml', > 'http://www.activitypedia.org/img/gmap/ > gmap1.png');} > > </script> > </head> > <body style="margin:0px; padding:0px;" onload="initialize()"> > <div id="map_canvas" style="width:100%; height:90%"></div> > </body> > </html> > > On 21 mai, 18:49, Jack Berberette <[email protected]> wrote: > > > > > Thanks for the quick response. I just found the answer. This site is > > currently in a shared hosting environment and the allow_url_fopen is set to > > "off". So I moved the parser script to it's own folder then created a > > php.ini for that folder only and set allow_url_fopen = on; this way only the > > file in that directory can be accessed outside the domain. > > > Thanks for your help :) > > > Jack > > > On Fri, May 21, 2010 at 12:44 PM, Rossko <[email protected]> wrote: > > > > The only problem is that the deveice can't access the PHP parser from my > > > web > > > > hosting server...If I remove the reference to the parser the feed works > > > fine > > > > but I loose the custom icons. Is there a trick to allowing access to a > > > PHP > > > > file from an address outside the main location. > > > > Have a look at the discussions at the bottom of > > >http://phonegap.pbworks.com/Getting+Started+with+PhoneGap+(iPhone)<http://phonegap.pbworks.com/Getting+Started+with+PhoneGap+%28iPhone%29> > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Maps JavaScript API v3" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-maps-js-api-v3%2B > > > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > > PR: wait... <javascript:{}> I: wait... <javascript:{}> L: > > wait...<javascript:{}> LD: > > wait... <javascript:{}> I: wait... <javascript:{}>wait... <javascript:{}> > > Rank: > > wait... <javascript:{}> Traffic: wait... <javascript:{}> Price: > > wait...<javascript:{}> C: > > wait... <javascript:{}> > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps JavaScript API v3" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.- Hide quoted > > text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
