github-advanced-security[bot] commented on code in PR #884: URL: https://github.com/apache/incubator-baremaps/pull/884#discussion_r1698244789
########## baremaps-server/src/main/resources/raster/hillshade.html: ########## @@ -0,0 +1,89 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <title>3D Terrain</title> + <meta property="og:description" content="Go beyond hillshade and show elevation in actual 3D." /> + <meta charset='utf-8'> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js" integrity="sha256-RU7N55x2fpxos26u6Mrn26qPlDih4ZiqZMstWPipnGE=" crossorigin="anonymous"></script> + <script src="https://baremaps.apache.org/assets/maplibre/maplibre-gl-inspect.js" integrity="sha256-NYdRoIbqeAWkTHjpa/BukMLXcsiqFoDuJCYzzaRei30=" crossorigin="anonymous"></script> + <script src="https://baremaps.apache.org/assets/maplibre/maplibre-gl-tile-boundaries.js" integrity="sha256-Jo8NvxMzooqayU8+eIsjO49b4EoakoE0o0tSSrBWPCU=" crossorigin="anonymous"></script> + <script src="https://baremaps.apache.org/assets/maplibre/maplibre-custom-controls.js" integrity="sha256-80a3VIbp5OJ8HSIWJ7+6NjTvdBmVirLCR6otKucXnlw=" crossorigin="anonymous"></script> + <script src="https://baremaps.apache.org/assets/maplibre/maplibre-gl-framerate.js" integrity="sha256-6IVzv2heNDAl7KkSqjRkmjr56asfkdCxO2q8ouTo8t8=" crossorigin="anonymous"></script> + <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" integrity="sha256-V2sIX92Uh6ZaGSFTKMHghsB85b9toJtmazgG09AI2uk=" crossorigin="anonymous"> + <link rel="stylesheet" href="https://baremaps.apache.org/assets/maplibre/maplibre-gl-inspect.css" integrity="sha256-ePhsoaklgbCBxK7kfSUcP+V+bVqnfFwpILz7hkSR0Lo=" crossorigin="anonymous"> + <link rel="stylesheet" href="https://baremaps.apache.org/assets/maplibre/maplibre-gl-tile-boundaries.css" integrity="sha256-FxIRliWXnU67sT1i97MgNQ0qL8LjsgYiBH9v/uNxzdM=" crossorigin="anonymous"> + <link rel="stylesheet" href="https://baremaps.apache.org/assets/maplibre/maplibre-custom-controls.css" integrity="sha256-rFc19qrZTPgcrNeYjtsLCcDOqM5NrLiPy2U+0FxW9vA=" crossorigin="anonymous"> + <link rel="icon" type="image/x-icon" href="https://baremaps.apache.org/assets/favicon/favicon.ico"> + <style> + body { margin: 0; padding: 0; } + html, body, #map { height: 100%; } + </style> +</head> +<body> +<div id="map"></div> +<script> + const map = (window.map = new maplibregl.Map({ + antialias: true, + container: 'map', + zoom: 11, + center: [11.5519, 47.2719], + hash: true, + style: { + version: 8, + sources: { + rasterSource: { + type: 'raster', + 'tiles': [ + 'http://localhost:9000/raster/{z}/{x}/{y}.png' + ], + tileSize: 256 + }, + contourSource: { + type: 'vector', + tiles: [ + 'http://localhost:9000/tiles/{z}/{x}/{y}.mvt' + ], + }, + }, + layers: [ + // { + // 'id': 'raster', + // 'type': 'raster', + // 'source': 'rasterSource', + // 'paint': {} + // }, + { + 'id': 'contour', + 'type': 'line', + 'source': 'contourSource', + 'source-layer': 'elevation', + 'layout': {}, Review Comment: ## Overwritten property This property is overwritten by [another property](1) in the same object literal. [Show more details](https://github.com/apache/incubator-baremaps/security/code-scanning/1526) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
