Hi list, I'm trying to make my first custom build following http://docs.openlayers.org/library/deploying.html.
OpenLayers is declared and used in a webapp on http://localhost:8080, but I put the library in a central repository on http://my.web.server. When using my custom build, openlayers tries to download the png's from http://localhost:8080 (and gets a 404), but it should get them from http://my.web.server. When using the standard OpenLayers.js (not my custom build), it gets the png's from http://my.web.server like expected. I don't think it is a problem of deploying the custom build, because it is at the same level than the folders img and theme. On http://my.web.server, I have in the same folder : OpenLayers.js // standard lib OpenLayers-projAndVector.js // my custom build img/... theme/... ... // the rest of the main folder In my webapp, if I declare <script type="text/javascript" src="http://my.web.server/lib/openlayers/2.10/OpenLayers-projAndVector.js"></script> then it looks for the png's in ./img/... (wrong place) if I declare <script type="text/javascript" src="http://my.web.server/lib/openlayers/2.10/OpenLayers.js"></script> then it looks for the png's in http://my.web.server/lib/openlayers/2.10/img/... (right place) I think I must be missing some class(es) in my custom build, but which ones ? Here is my config file : # This file includes a small subset of OpenLayers code, designed to be # integrated into another application. It includes only the Layer types # necesary to create tiled or untiled WMS, basic controls and basic vector # types. [first] OpenLayers/SingleFile.js OpenLayers.js OpenLayers/BaseTypes.js OpenLayers/BaseTypes/Class.js OpenLayers/Util.js [last] [include] OpenLayers/Map.js OpenLayers/Projection.js OpenLayers/Layer/WMS.js OpenLayers/Layer/Vector.js OpenLayers/Control/Attribution.js OpenLayers/Control/ArgParser.js OpenLayers/Control/Navigation.js OpenLayers/Control/PanZoom.js OpenLayers/Feature/Vector.js OpenLayers/Geometry.js OpenLayers/Geometry/Point.js OpenLayers/Geometry/Polygon.js OpenLayers/Renderer/SVG.js OpenLayers/Renderer/VML.js OpenLayers/Renderer/Canvas.js OpenLayers/Renderer/Elements.js OpenLayers/Renderer.js OpenLayers/Symbolizer.js [exclude] Any idea what I'm missing ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Custom-build-can-t-find-png-s-for-PanZoom-tp5630252p5630252.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
