Changeset c5b13e1 for src/webapp


Ignore:
Timestamp:
Jan 20, 2019, 5:21:35 PM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
74c3571
Parents:
46f871f
Message:
  • gnuboat-log-analyser
    • Combines hillshade and color-relief in one tiff
    • Generating tiles from combined tiff with transperency for nodata
  • Added high and low accuracy layer to map
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webserver/js/GnuBoat.Webserver.js

    r46f871f rc5b13e1  
    4646               
    4747                // add GNUBoat layers
    48                 var layer_gnuboat_hillshade = L.tileLayer(
    49                         './tiles/hillshade/{z}/{x}/{y}.png',
    50                         {tms: true, opacity: 0.2, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
     48                var layer_gnuboat_accuracy_low = L.tileLayer(
     49                        './tiles/gnuboat_10_100/{z}/{x}/{y}.png',
     50                        {tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
    5151                );
    52                 var layer_gnuboat_color_relief= L.tileLayer(
    53                         'tiles/color_relief/{z}/{x}/{y}.png',
    54                         {tms: true, opacity: 0.4, zIndex: 99, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
    55                 );
    56                 var layer_gnuboat_slopeshade = L.tileLayer(
    57                         'tiles/slopeshade/{z}/{x}/{y}.png',
    58                         {tms: true, opacity: 0.2, zIndex: 97, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
    59                 );
    60                 var layer_gnuboat_group = L.layerGroup([layer_gnuboat_color_relief, layer_gnuboat_hillshade, layer_gnuboat_slopeshade]).addTo(GnuBoat.Webserver.private.map);
     52                var layer_gnuboat_accuracy_high = L.tileLayer(
     53                        './tiles/gnuboat_100_100/{z}/{x}/{y}.png',
     54                        {tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
     55                ).addTo(GnuBoat.Webserver.private.map);
    6156               
    6257                // add layer control
    … …  
    6661                // overlays
    6762                var overlays = {"Seamarks": layer_openseamap,
    68                         "GNUBoat": layer_gnuboat_group,
    69 //                      "GNUBoat Hillshade": layer_gnuboat_hillshade,
    70 //                      "GNUBoat Color Relief": layer_gnuboat_color_relief,
    71 //                      "GNUBoat Slopeshade": layer_gnuboat_slopeshade,
     63                        "GNUBoat Low Accuracy": layer_gnuboat_accuracy_low,
     64                        "GNUBoat High Accuracy": layer_gnuboat_accuracy_high,
    7265                };
    7366                GnuBoat.Webserver.private.mapControl = L.control.layers(
Note: See TracChangeset for help on using the changeset viewer.