It doesn't work!<br><br>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.
<br><br>Here's my current library.cfg<br><br>[first]<br>OpenLayers/SingleFile.js<br>OpenLayers.js<br>OpenLayers/BaseTypes.js<br>OpenLayers/Util.js<br>Rico/Corner.js<br><br>[last]<br><br>[include]<br>OpenLayers/Marker.js
<br>OpenLayers/Layer/Markers.js<br>OpenLayers/Icon.js<br>OpenLayers/Control/MouseDefaults.js<br>OpenLayers/Control/LayerSwitcher.js<br>OpenLayers/Control/PanZoomBar.js<br>OpenLayers/Events.js<br>OpenLayers/Map.js<br>OpenLayers/Layer.js
<br>OpenLayers/Layer/Grid.js<br>OpenLayers/Layer/HTTPRequest.js<br>OpenLayers/Layer/WMS.js<br>OpenLayers/Layer/WMS/Untiled.js<br>OpenLayers/Tile.js<br>OpenLayers/Tile/Image.js<br><br>[exclude]<br><br><div><span class="gmail_quote">
On 8/10/07, <b class="gmail_sendername">Tom (JDi Solutions)</b> <<a href="mailto:tom.dean@jdi-solutions.co.uk">tom.dean@jdi-solutions.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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!<br><br>thanks.<div><span class="e" id="q_1144ff5cc929086c_1">
<br><br><div><span class="gmail_quote">
On 8/10/07, <b class="gmail_sendername">Christopher Schmidt</b> <<a href="mailto:crschmidt@metacarta.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">crschmidt@metacarta.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Aug 09, 2007 at 10:30:23AM +0100, Tom (JDi Solutions) wrote:<br>> Hi all,<br>><br>> I'm currently experimenting with compressing OpenLayers and have been<br>> running build.py to create a compressed version of the library, however the
<br>> smallest version I seem to be able to make is 220K and from the output at<br>> the command line it seems to be including loads more stuff than I actually<br>> need despite my library.cfg file looking like this:
<br>><br>><br>> I'm assuming I may actually need Rico, SingleFile, OpenLayers and<br>> BaseTypes? But is it possible to get rid of the likes of virtualearth,<br>> yahoo and all that stuff? All I want in this version is WMS, some mouse
<br>> controls and point and I want the file as small as possible. 220K just<br>> seems like more than it ought to be?<br>><br>> Do I need to specifically include all the stuff I don't want in the exclude
<br>> list or are things included as dependencies?<br><br><a href="http://trac.openlayers.org/wiki/Profiles" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://trac.openlayers.org/wiki/Profiles
</a><br><br>"If you wish to create a build where you must specify each file you wish
<br>to include, you should then add files to an '[include]' stanza, as<br>lite.cfg does. If you wish to create a build where all files in the lib/<br>directory are included by default, and you wish to *exclude* certain
<br>files, you can do this by putting filenames under the [exclude] header.<br>Look at the files library.cfg and lite.cfg in the build/ directory for<br>examples of this behavior."<br><br>Dependancies are/should be added automatically, though there are many
<br>files that are missing dependancies that you may have to add manually.<br>missing dependancies can be filed as bugs.<br><br>Regards,<br>--<br>Christopher Schmidt<br>MetaCarta<br></blockquote></div><br>
</span></div></blockquote></div><br>