On Sep 15, 2010, at 5:47 PM, ext Nigel Pickering wrote: > What's the correct directory structure for OpenLayers to work correctly?
http://docs.openlayers.org/library/deploying.html covers this. > One possible way might be: > > website_dir (html files) > lib_dir (contains OpenLayers.js plus others) > img_dir (contains some png files) > css_dir (contains default OL style.css plus others) > img_dir (contains more png files) > > Why do you need two img directories? Many of the images are the same. Historical reasons. Particularly, some controls were written before we used CSS to style things. > The img dir below OpenLayers.js seem to be hardwired. Controllable via OpenLayers.ImgPath, automatically determined relative to OpenLayers.js -- if it's single file, it's assumed to be in ./img, and if it's multi-file/dev, it's assumed to be in ../img. > The img dir below > style.css looks like it can be changed within the css file. Paths in CSS are relative to the CSS file. > Clarification would be great. It should also go in the FAQ. This is already written in the documentation. It isn't frequently asked just because one person asked it. -- Chris > Nigel > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
