Hi, just noticed that the API Sandbox GeoRss example at http://mapstraction.appspot.com/#georss is broken. Anyone knows what needs to be fixed? I a trying to work from that to display a .rss file of mine. Thanks, Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20090610/8224455d/attachment.htm>
Hi Jan, You''re right. That example isn''t loading anything onto the map. It looks to me like there''s something going on with the OpenLayers implementation in Mapstraction. Mapstraction''s addOverlay function shows the right stuff when I switch to using Google as the mapping provider. --Ad --- Adam DuVander I like maps: http://mapscripting.com I like simple: http://adamduvander.com On Jun 10, 2009, at 12:54 PM, Jan Martin wrote:> Hi, > just noticed that the > API Sandbox GeoRss example at > > http://mapstraction.appspot.com/#georss > > is broken. > Anyone knows what needs to be fixed? > I a trying to work from that to display a .rss file of mine. > > Thanks, > Jan > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
Thanks, I got it working starting with the google specific provider example and then changing the js code. However it does not work when exchanging flickr with my skytraq.georss file located in the same local directory as the page itself. Any ideas why? Also I wonder how one would zoom in on the extent of the data, and not using hardcoded lat lon as center of the map. function initialize() { var mapstraction = new Mapstraction(''map_canvas'',''google''); var myPoint = new LatLonPoint(49.99372,8.66419); mapstraction.setCenterAndZoom(myPoint, 15); mapstraction.addControls({zoom: ''large''}); // mapstraction.addOverlay(" http://api.flickr.com/services/feeds/groups_pool.gne?id=322338 at N20&format=rss_200&georss=1 "); mapstraction.addOverlay("skytraq.georss"); } skytraq.georss looks like this: <rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> <channel> <title>Skytraq Title</title> <description>Skytraq Description</description> <category>Skytraq category</category> <item><pubDate>2009-06-06T15:55:33Z</pubDate><geo:lat>49.993945</geo:lat><geo:long>8.664075</geo:long><georss:elev>172.012836</georss:elev></item> .... </channel> </rss> On Thu, Jun 11, 2009 at 1:27 AM, Adam DuVander <mapstraction at duvander.com>wrote:> Hi Jan, > > You''re right. That example isn''t loading anything onto the map. It looks to > me like there''s something going on with the OpenLayers implementation in > Mapstraction. Mapstraction''s addOverlay function shows the right stuff when > I switch to using Google as the mapping provider. > > --Ad > --- > Adam DuVander > I like maps: http://mapscripting.com > I like simple: http://adamduvander.com > > > On Jun 10, 2009, at 12:54 PM, Jan Martin wrote: > > Hi, >> just noticed that the >> API Sandbox GeoRss example at >> >> http://mapstraction.appspot.com/#georss >> >> is broken. >> Anyone knows what needs to be fixed? >> I a trying to work from that to display a .rss file of mine. >> >> Thanks, >> Jan >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20090611/15d4ea6e/attachment.htm>
You can only load GeoRSS files from a publicly available URL using Google - it goes through one of our proxies. We have a function for zooming to the bounds of the file - GGeoXml.gotoDefaultViewport(map:GMap2). Not sure if that should be in Mapstraction or if you should just try to get to the GGeoXml object. On Thu, Jun 11, 2009 at 12:11 PM, Jan Martin<janmartin3 at googlemail.com> wrote:> Thanks, > > I got it working starting with the google specific provider example and then > changing the js code. > > However it does not work when exchanging flickr with my skytraq.georss file > located in the same local directory as the page itself. > > Any ideas why? > Also I wonder how one would zoom in on the extent of the data, and not using > hardcoded lat lon as center of the map. > > > ????? function initialize() { > ??????? var mapstraction = new Mapstraction(''map_canvas'',''google''); > > ??????? var myPoint = new LatLonPoint(49.99372,8.66419); > ??????? mapstraction.setCenterAndZoom(myPoint, 15); > ??????? mapstraction.addControls({zoom: ''large''}); > // > mapstraction.addOverlay("http://api.flickr.com/services/feeds/groups_pool.gne?id=322338 at N20&format=rss_200&georss=1"); > ??????? mapstraction.addOverlay("skytraq.georss"); > > ??? } > > skytraq.georss looks like this: > > <rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> > <channel> > > <title>Skytraq Title</title> > <description>Skytraq Description</description> > <category>Skytraq category</category> > <item><pubDate>2009-06-06T15:55:33Z</pubDate><geo:lat>49.993945</geo:lat><geo:long>8.664075</geo:long><georss:elev>172.012836</georss:elev></item> > .... > </channel> > </rss> > > > > On Thu, Jun 11, 2009 at 1:27 AM, Adam DuVander <mapstraction at duvander.com> > wrote: >> >> Hi Jan, >> >> You''re right. That example isn''t loading anything onto the map. It looks >> to me like there''s something going on with the OpenLayers implementation in >> Mapstraction. Mapstraction''s addOverlay function shows the right stuff when >> I switch to using Google as the mapping provider. >> >> --Ad >> --- >> Adam DuVander >> I like maps: http://mapscripting.com >> I like simple: http://adamduvander.com >> >> On Jun 10, 2009, at 12:54 PM, Jan Martin wrote: >> >>> Hi, >>> just noticed that the >>> API Sandbox GeoRss example at >>> >>> http://mapstraction.appspot.com/#georss >>> >>> is broken. >>> Anyone knows what needs to be fixed? >>> I a trying to work from that to display a .rss file of mine. >>> >>> Thanks, >>> Jan >>> >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> > > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >
On Wed, Jun 10, 2009 at 11:14 PM, pamela fox<pammyla.fox at gmail.com> wrote:> You can only load GeoRSS files from a publicly available URL using > Google - it goes through one of our proxies. > > We have a function for zooming to the bounds of the file - > GGeoXml.gotoDefaultViewport(map:GMap2).There is an autoCenterAndZoom() that can be called. It typically loops through explicit marker calls to do this, but if a marker array is empty, then this could be called (or provider specific versions).> > Not sure if that should be in Mapstraction or if you should just try > to get to the GGeoXml object. > > > On Thu, Jun 11, 2009 at 12:11 PM, Jan Martin<janmartin3 at googlemail.com> wrote: >> Thanks, >> >> I got it working starting with the google specific provider example and then >> changing the js code. >> >> However it does not work when exchanging flickr with my skytraq.georss file >> located in the same local directory as the page itself. >> >> Any ideas why? >> Also I wonder how one would zoom in on the extent of the data, and not using >> hardcoded lat lon as center of the map. >> >> >> ????? function initialize() { >> ??????? var mapstraction = new Mapstraction(''map_canvas'',''google''); >> >> ??????? var myPoint = new LatLonPoint(49.99372,8.66419); >> ??????? mapstraction.setCenterAndZoom(myPoint, 15); >> ??????? mapstraction.addControls({zoom: ''large''}); >> // >> mapstraction.addOverlay("http://api.flickr.com/services/feeds/groups_pool.gne?id=322338 at N20&format=rss_200&georss=1"); >> ??????? mapstraction.addOverlay("skytraq.georss"); >> >> ??? } >> >> skytraq.georss looks like this: >> >> <rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> >> <channel> >> >> <title>Skytraq Title</title> >> <description>Skytraq Description</description> >> <category>Skytraq category</category> >> <item><pubDate>2009-06-06T15:55:33Z</pubDate><geo:lat>49.993945</geo:lat><geo:long>8.664075</geo:long><georss:elev>172.012836</georss:elev></item> >> .... >> </channel> >> </rss> >> >> >> >> On Thu, Jun 11, 2009 at 1:27 AM, Adam DuVander <mapstraction at duvander.com> >> wrote: >>> >>> Hi Jan, >>> >>> You''re right. That example isn''t loading anything onto the map. It looks >>> to me like there''s something going on with the OpenLayers implementation in >>> Mapstraction. Mapstraction''s addOverlay function shows the right stuff when >>> I switch to using Google as the mapping provider. >>> >>> --Ad >>> --- >>> Adam DuVander >>> I like maps: http://mapscripting.com >>> I like simple: http://adamduvander.com >>> >>> On Jun 10, 2009, at 12:54 PM, Jan Martin wrote: >>> >>>> Hi, >>>> just noticed that the >>>> API Sandbox GeoRss example at >>>> >>>> http://mapstraction.appspot.com/#georss >>>> >>>> is broken. >>>> Anyone knows what needs to be fixed? >>>> I a trying to work from that to display a .rss file of mine. >>>> >>>> Thanks, >>>> Jan >>>> >>>> _______________________________________________ >>>> Mapstraction mailing list >>>> Mapstraction at lists.mapstraction.com >>>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >>> >> >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >> > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >-- Andrew Turner mobile: 248.982.3609 andrew at fortiusone.com http://highearthorbit.com http://geocommons.com Helping build the Geospatial Web Introduction to Neogeography - http://oreilly.com/catalog/neogeography