[Thread Prev][Thread Next][Index]

[las_users] The LAS reference map widget



Hello,

In the more recent versions of LAS we use an OpenLayers-based JavaScript map widget for the user interface. One of the advantages of this arrangement is that we no longer have to fuss with creating custom map background images for data that cover only small regions. However, it does introduce problem when the server used by the map goes down.

Recently the server we've been using labs.metacarta.com has been off-line. You can repair the problem on your servers by carefully editing the compiled JavaScript files that appear in the WebContent/JavaScript/components directory.

./gov.noaa.pmel.tmap.las.VizGal/4833E548D179867FA9863AE1FDBE7B8D.cache.html
./gov.noaa.pmel.tmap.las.VizGal/AF0CBC0802B7AD8B13EB9DF5AC7CB959.cache.html
./gov.noaa.pmel.tmap.las.VizGal/C40F1FA7FD830CF820B7202BA777626C.cache.html
./gov.noaa.pmel.tmap.las.VizGal/F40BB7B981B6D22684D2BF8F2833A1B1.cache.html
./gov.noaa.pmel.tmap.las.VizGal/F4EE93A1DD82535F533E1927198DE6A6.cache.html
./gov.noaa.pmel.tmap.las.VizGal/F4F02C4BF8F8200303C6C416F4747EEF.cache.html
./gov.noaa.pmel.tmap.las.NativeMapWidget/7E6E9CAA66DAA766E6AC5A0FD6AFBD25.cache.html ./gov.noaa.pmel.tmap.las.NativeMapWidget/9F95EE9BBA5E4F7CC202B1BAFAFD2C48.cache.html ./gov.noaa.pmel.tmap.las.NativeMapWidget/B2F31CE4D4A5B04D4564896844E8AF59.cache.html ./gov.noaa.pmel.tmap.las.NativeMapWidget/C13E8E3738EBB86E66DCDAB0BB959D53.cache.html ./gov.noaa.pmel.tmap.las.NativeMapWidget/C437350007D6D499CD12D974B0AE40B1.cache.html ./gov.noaa.pmel.tmap.las.NativeMapWidget/DBA24FD083932A627A6ED92B620C7771.cache.html

The hash keys of your files may be different from these. Replace the 'http://labs.metacarta.com/wms/vmap0' URL with 'http://vmap0.tiles.osgeo.org/wms/vmap0' in each of these files. These are huge files with only one "line" of text containing obfuscated JavaScript code.

From the directory containing these files you can make the changes using this tcsh loop.

foreach file ( *.html )
foreach? mv $file $file.meta
foreach? sed -e 's/labs\.metacarta\.com/vmap0\.tiles\.osgeo\.org/g' $file.meta > $file
foreach? end

Once you have made the edits, you need get these files deployed on your server either by doing an "ant deploy" and stopping and starting your server, or copying the files to the appropriate directory in $TOMCAT_HOME. And if you use the automatic cron script to verify your server is running run $LAS_HOME/bin/initialize_check.sh again.

Unfortunately, your users may have to clear their cache if they have visited your site recently to see map tiles again.

We will be switching these servers and, of course, making the map tile server a configurable option in a future release. We are very sorry for the inconvenience.

Roland



[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement