Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions matlab/lib/map_wgs2html.m
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
fprintf(fid, ' <head>\n');
fprintf(fid, ' <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />\n');
fprintf(fid, ' <meta charset="ISO8859-1" />\n');
fprintf(fid, ' <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@main/dist/en/v7.0.0/legacy/ol.css" type="text/css">\n');
fprintf(fid, ' <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v10.9.0/ol.css" type="text/css">\n');
fprintf(fid, ' <style type="text/css">\n');
fprintf(fid, ' html, body { height: 100%%; margin: 0; padding: 0; font-family:"AzoSans-Bold",Helvetica,Arial,sans-serif; overflow: auto; } \n');
fprintf(fid, ' h1 { font-size: 2rem; margin: 0.5rem; }\n');
Expand All @@ -352,7 +352,7 @@
fprintf(fid, ' %s\n', header);
fprintf(fid, ' <div id="crg-map" class="map">\n<div id="popup" class="popup"><div id="popup-content"></div><a href="#" id="popup-closer" class="popup-closer"></a></div>\n<div id="featuretip" class="featuretip"></div>\n</div>\n');
fprintf(fid, ' %s\n', footer);
fprintf(fid, ' <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@main/dist/en/v7.0.0/legacy/ol.js"></script>\n');
fprintf(fid, ' <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ol@v10.9.0/dist/ol.js"></script>\n');
fprintf(fid, ' <script type="text/javascript">\n');
fprintf(fid, ' let popup = new ol.Overlay({\n');
fprintf(fid, ' element: document.getElementById("popup"),\n');
Expand Down Expand Up @@ -426,7 +426,12 @@
fprintf(fid, ' let map = new ol.Map({\n');
fprintf(fid, ' target: "crg-map",\n');
fprintf(fid, ' layers: [\n');
fprintf(fid, ' new ol.layer.Tile({source: new ol.source.OSM()}),\n');
fprintf(fid, ' new ol.layer.Tile({\n');
fprintf(fid, ' source: new ol.source.XYZ({\n');
fprintf(fid, ' url: ''https://{a-c}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png'',\n');
fprintf(fid, ' attributions: ''&copy; OpenStreetMap contributors &copy; CARTO''\n');
fprintf(fid, ' })\n');
fprintf(fid, ' }),\n');
fprintf(fid, ' new ol.layer.Vector({source: vectorSource})\n');
fprintf(fid, ' ],\n');
fprintf(fid, ' view: new ol.View({center: center, zoom: 1}),\n');
Expand Down