[Potlatch-dev] external mapcss stylesheets and potlatch2

Richard Fairhurst richard at systemeD.net
Fri Jan 6 10:59:38 GMT 2012


Cobra wrote:
> Is there any other way than this one?
> - click the map style button, select edit
> - click add, name=Power, URL=http://dl.dropbox.com/u/31535737/Power.mapcss
> - close the style popup

Ah, right. No, that won't work.

Flash Player only allows Flash apps (such as P2) to load data from 
domains that have a permissions file, called crossdomain.xml. This 
permissions file needs to be saved at the root of the domain.

I was going to say "...and of course dl.dropbox.com doesn't have one". 
Actually it does, but it only allows Flash apps residing on dropbox.com 
to use it.

So you need to either:
	a) host the file somewhere where there's a more permissive 
crossdomain.xml file
	b) or wait for us to implement loading from local disk in P2 :)

If you want to do (a), then I usually recommend that people just copy 
the file from http://api.flickr.com/crossdomain.xml and put it at 
http://www.yourdomain.com/crossdomain.xml .

cheers
Richard




More information about the Potlatch-dev mailing list