[GeoNetwork-devel] OpenLayers.js question

I noticed that there are 2 copies of the OpenLayers.js file.

web/src/main/webapp/scripts/openlayers/OpenLayers.js
web/src/main/webapp/scripts/openlayers/lib/OpenLayers.js

In webapp/xsl/geo/utils.xsl it uses lib/OpenLayers.js in the debug section
but the other is used the non-debug section.

When I put the put ?debug=1 in the url for debug mode, I get some openLayers
errors in the error console. I did a quick switch of the OpenLayers.js in
the debug section and it seems to have fixed the errors.

Is this a bug or something done on purpose for some special debugging
purposes?

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-js-question-tp5024077.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

I don’t know for sure but my guess would be that there is something wrong with the minification. Of course I have not experienced these issues so I don’t know for sure.

Jesse

···

On Thu, Dec 20, 2012 at 1:12 PM, ianwallen <ianwallen@anonymised.com> wrote:

I noticed that there are 2 copies of the OpenLayers.js file.

web/src/main/webapp/scripts/openlayers/OpenLayers.js
web/src/main/webapp/scripts/openlayers/lib/OpenLayers.js

In webapp/xsl/geo/utils.xsl it uses lib/OpenLayers.js in the debug section
but the other is used the non-debug section.

When I put the put ?debug=1 in the url for debug mode, I get some openLayers
errors in the error console. I did a quick switch of the OpenLayers.js in
the debug section and it seems to have fixed the errors.

Is this a bug or something done on purpose for some special debugging
purposes?


View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-js-question-tp5024077.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.


LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Jesse,

I never even thought about the minified version - thank for pointing that
out....

The debug version is using the minified version - and the no-debug version
is not. I suspect that there was issues with using the minified version in
the no-debug version since there is a comment specifying that there is a
"TODO: Change to use gn.geo.libs.js"

Either way the debug version should not be using the minified version anyway
- so I will submit a pull request to have it changed.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-js-question-tp5024077p5024101.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.