On Sep 15, 2010, at 5:58 PM, ext P Kishor wrote: > On Wed, Sep 15, 2010 at 11:47 PM, Nigel Pickering <[email protected]> wrote: >> What's the correct directory structure for OpenLayers to work correctly? >> >> 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. >> >> The img dir below OpenLayers.js seem to be hardwired. The img dir below >> style.css looks like it can be changed within the css file. >> >> Clarification would be great. It should also go in the FAQ. >> > > > The way I understand, the files under the lib dir are not really > used... they are their to help you create your own build of > OpenLayers. The instance of OpenLayers.js in the parent directory > (parent of lib dir) is the one that you want to use. And, image paths > in it are not hard coded. They are figured out using OpenLayers > utility functions. > > Back your stuff up and try this. Blow away everything except > OpenLayers.js, img/ and possibly the themes/ directory, and it will > work. Rest (apidoc_config/, art/, build/, lib/, etc.) are for you to > build your own versions of OL. > > Of course, I cud be campletlee rong. > > So, don't really blow away anything.
This is correct. anything other than OpenLayers.js, img/, and theme/ is not used in production, singlef-ile setups. -- Chris > > > >> Nigel >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > > -- > Puneet Kishor > _______________________________________________ > 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
