[Potlatch-dev] Potlatch2 dev
Richard Fairhurst
richard at systemeD.net
Mon Jun 7 23:24:32 BST 2010
Hi Sean,
Great that you'd like to help!
Off the top of my head, I get that if I look at
http://localhost/~richard/etc rather than http://127.0.0.1/ . On my
machine (OS X) Flash treats "localhost" as the local domain and
"127.0.0.1" as the Internet, so won't let you access one from another.
Using the Flash debug player (available for download from Adobe) will
usually flash up an alert if there's a security issue. Looking at the
Activity Monitor, or equivalent in your browser, can also help you see
what's been loaded and what hasn't.
Cc:ing to the potlatch-dev list as there are people there who probably
know much more about it than I do.
cheers
Richard
On 07/06/2010 20:31, Branch, Sean G - St Louis, MO wrote:
> Richard,
>
> I am interested in helping with Potlatch. I do GIS dev with the USPS
> using ESRI and their products but found Potlatch and OSM and love what
> is happening with it. I am attempting to get Potlatch2 running on my
> dev machine but keep getting white maps. I have done flash coding in
> the past and would like to roll up my actionscript sleaves again. That
> being said ever since flex came out I haven't been emersed in the fash
> world so I have some catching up to do. I also am having trouble
> running the existing svn code base.
> I have been able to compile potlatch2.mxml and the halcyon viewer and
> I setup a web server and pointed my browser to the local site but the
> flash just doesn't ever load.
> I am able to reach the api server and test it's capabilities. I am
> wondering if some of these credentials in the html file are broken on
> purpose.
> Should I be generating new oauth key or does this one really work?
> *var* fo = *new*
> SWFObject("potlatch2.swf?d="+Math.round(Math.random()*1000), "map",
> "100%", "100%", "9", "#FFFFFF");
> fo.addVariable("lat",51.875);
> fo.addVariable("lon",-1.492);
> fo.addVariable("zoom",16);
>
> fo.addVariable("api","http://api06.dev.openstreetmap.org/api/0.6/");
>
> fo.addVariable("policy","http://api06.dev.openstreetmap.org/api/crossdomain.xml");
> fo.addVariable("connection","XML");
> fo.addVariable("oauth_policy",
> "_http://api06.dev.openstreetmap.org/oauth/crossdomain.xml_");
> fo.addVariable("oauth_request_url",
> "_http://api06.dev.openstreetmap.org/oauth/request_token_");
> fo.addVariable("oauth_access_url",
> "_http://api06.dev.openstreetmap.org/oauth/access_token_");
> fo.addVariable("oauth_auth_url",
> "_http://api06.dev.openstreetmap.org/oauth/authorize_");
> fo.addVariable("oauth_consumer_key", "*fiM1IoqnKJk4JCfcl63DA*");
> fo.addVariable("oauth_consumer_secret",
> "*7fYgJK9M4vB1CvBZ6jEsPGxYK9UD1hEnI6NqTxNGs*");
> fo.addVariable("serverName", "api06 Test On Dev");
>
> fo.addVariable("style","potlatch.css?d="+Math.round(Math.random()*1000));
> fo.write("map");
> Thanks
> *Sean Branch*
> *St. Louis IBSSC*
> * Email: _sean.g.branch at usps.gov_ <mailto:sean.g.branch at usps.gov>
> ( Desk: +1 314-923-2557
> ( Mobile: +1 314-489-8789
More information about the Potlatch-dev
mailing list