It doesn't work! All js errors are now gone and I have library.cfg as below, the map pans around when I click and drag and I can move my markers but the pan zoom bar and layer switcher controls are not visible. They are in the DOM, I just can't work out why I can't see them, with the full code they work fine.
Here's my current library.cfg [first] OpenLayers/SingleFile.js OpenLayers.js OpenLayers/BaseTypes.js OpenLayers/Util.js Rico/Corner.js [last] [include] OpenLayers/Marker.js OpenLayers/Layer/Markers.js OpenLayers/Icon.js OpenLayers/Control/MouseDefaults.js OpenLayers/Control/LayerSwitcher.js OpenLayers/Control/PanZoomBar.js OpenLayers/Events.js OpenLayers/Map.js OpenLayers/Layer.js OpenLayers/Layer/Grid.js OpenLayers/Layer/HTTPRequest.js OpenLayers/Layer/WMS.js OpenLayers/Layer/WMS/Untiled.js OpenLayers/Tile.js OpenLayers/Tile/Image.js [exclude] On 8/10/07, Tom (JDi Solutions) <[EMAIL PROTECTED]> wrote: > > Ah stunning, thanks very much, it's down to 89K so if I also get the > webserver to compress it there'll hardly be anything left. Now I just have > to see if it works! > > thanks. > > On 8/10/07, Christopher Schmidt <[EMAIL PROTECTED]> wrote: > > > > On Thu, Aug 09, 2007 at 10:30:23AM +0100, Tom (JDi Solutions) wrote: > > > Hi all, > > > > > > I'm currently experimenting with compressing OpenLayers and have been > > > running build.py to create a compressed version of the library, > > however the > > > smallest version I seem to be able to make is 220K and from the output > > at > > > the command line it seems to be including loads more stuff than I > > actually > > > need despite my library.cfg file looking like this: > > > > > > > > > I'm assuming I may actually need Rico, SingleFile, OpenLayers and > > > BaseTypes? But is it possible to get rid of the likes of > > virtualearth, > > > yahoo and all that stuff? All I want in this version is WMS, some > > mouse > > > controls and point and I want the file as small as possible. 220K > > just > > > seems like more than it ought to be? > > > > > > Do I need to specifically include all the stuff I don't want in the > > exclude > > > list or are things included as dependencies? > > > > http://trac.openlayers.org/wiki/Profiles > > > > "If you wish to create a build where you must specify each file you wish > > > > to include, you should then add files to an '[include]' stanza, as > > lite.cfg does. If you wish to create a build where all files in the lib/ > > directory are included by default, and you wish to *exclude* certain > > files, you can do this by putting filenames under the [exclude] header. > > Look at the files library.cfg and lite.cfg in the build/ directory for > > examples of this behavior." > > > > Dependancies are/should be added automatically, though there are many > > files that are missing dependancies that you may have to add manually. > > missing dependancies can be filed as bugs. > > > > Regards, > > -- > > Christopher Schmidt > > MetaCarta > > > >
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
