Skip to content

Commit

Permalink
Merge pull request #24 from neo-garaix/fix-html
Browse files Browse the repository at this point in the history
Improve look with some fix
  • Loading branch information
dmarteau authored Oct 3, 2024
2 parents 0c3c6b3 + 155f274 commit d7b4189
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
Empty file added ol-proj4rs-demo-app/favicon.ico
Empty file.
1 change: 1 addition & 0 deletions ol-proj4rs-demo-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>OpenLayers + Proj4rs</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<body>
<header>OpenLayers + Proj4rs</header>
Expand Down
3 changes: 2 additions & 1 deletion ol-proj4rs-demo-app/reprojection-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Image Reprojection</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="codeStyle.css">
<style>
Expand Down Expand Up @@ -47,7 +48,7 @@ <h3>proj4rs</h3>
<span class="token keyword">import</span> <span class="token constant">OSM</span> <span class="token keyword">from</span> <span class="token string">'ol/source/OSM.js'</span>;
<span class="token keyword">import</span> Static <span class="token keyword">from</span> <span class="token string">'ol/source/ImageStatic.js'</span>;
<span class="token keyword">import</span> View <span class="token keyword">from</span> <span class="token string">'ol/View.js'</span>;
<span class="change"><span class="token keyword">import</span> {proj4} <span class="token keyword">from</span> <span class="token string">'./assets/js/proj4.js'</span>;</span>
<span class="change"><span class="token keyword">import</span> {proj4} <span class="token keyword">from</span> <span class="token string">'proj4rs/proj4.js'</span>;</span>
<span class="token keyword">import</span> {Image <span class="token keyword">as</span>, Tile <span class="token keyword">as</span> TileLayer} <span class="token keyword">from</span> <span class="token string">'ol/layer.js'</span>;
<span class="token keyword">import</span> {getCenter} <span class="token keyword">from</span> <span class="token string">'ol/extent.js'</span>;
<span class="token keyword">import</span> {register} <span class="token keyword">from</span> <span class="token string">'ol/proj/proj4.js'</span>;
Expand Down
3 changes: 2 additions & 1 deletion ol-proj4rs-demo-app/reprojection.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Raster Reprojection</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="codeStyle.css">
</head>
Expand Down Expand Up @@ -73,7 +74,7 @@ <h3>proj4rs</h3>
<span class="token keyword">import</span> View <span class="token keyword">from</span> <span class="token string">'ol/View.js'</span>;
<span class="token keyword">import</span> <span class="token constant">WMTS</span>, {optionsFromCapabilities} <span class="token keyword">from</span> <span class="token string">'ol/source/WMTS.js'</span>;
<span class="token keyword">import</span> WMTSCapabilities <span class="token keyword">from</span> <span class="token string">'ol/format/WMTSCapabilities.js'</span>;
<span class="change"><span class="token keyword">import</span> {proj4} <span class="token keyword">from</span> <span class="token string">'./assets/js/proj4.js'</span>;</span>
<span class="change"><span class="token keyword">import</span> {proj4} <span class="token keyword">from</span> <span class="token string">'proj4rs/proj4.js'</span>;</span>
<span class="token keyword">import</span> {<span class="token constant">OSM</span>, TileImage, TileWMS} <span class="token keyword">from</span> <span class="token string">'ol/source.js'</span>;
<span class="token keyword">import</span> {createXYZ} <span class="token keyword">from</span> <span class="token string">'ol/tilegrid.js'</span>;
<span class="token keyword">import</span> {getCenter, getWidth} <span class="token keyword">from</span> <span class="token string">'ol/extent.js'</span>;
Expand Down
3 changes: 2 additions & 1 deletion ol-proj4rs-demo-app/sphere-mollweide.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Sphere Mollweide</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="codeStyle.css">
<style>
Expand Down Expand Up @@ -46,7 +47,7 @@ <h3>proj4rs</h3>
<span class="token keyword">import</span> VectorLayer <span class="token keyword">from</span> <span class="token string">'ol/layer/Vector.js'</span>;
<span class="token keyword">import</span> VectorSource <span class="token keyword">from</span> <span class="token string">'ol/source/Vector.js'</span>;
<span class="token keyword">import</span> View <span class="token keyword">from</span> <span class="token string">'ol/View.js'</span>;
<span class="change"><span class="token keyword">import</span> {proj4} <span class="token keyword">from</span> <span class="token string">'./assets/js/proj4.js'</span>;</span>
<span class="change"><span class="token keyword">import</span> {proj4} <span class="token keyword">from</span> <span class="token string">'proj4rs/proj4.js'</span>;</span>
<span class="token keyword">import</span> {register} <span class="token keyword">from</span> <span class="token string">'ol/proj/proj4.js'</span>;
...</code>
</pre>
Expand Down
1 change: 1 addition & 0 deletions ol-proj4rs-demo-app/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ html, body {
header {
font-weight: bold;
font-size: 28px;
padding-top: 20px;
}

h4 {
Expand Down
3 changes: 2 additions & 1 deletion ol-proj4rs-demo-app/wms-image-custom-proj.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Single Image WMS with Proj4rs</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="codeStyle.css">
</head>
Expand Down Expand Up @@ -38,7 +39,7 @@ <h3>proj4rs</h3>
<span class="token keyword">import</span> Map <span class="token keyword">from</span> <span class="token string">'ol/Map.js'</span>;
<span class="token keyword">import</span> Projection <span class="token keyword">from</span> <span class="token string">'ol/proj/Projection.js'</span>;
<span class="token keyword">import</span> View <span class="token keyword">from</span> <span class="token string">'ol/View.js'</span>;
<span class="change"><span class="token keyword">import</span> {proj4} <span class="token keyword">from</span> <span class="token string">'./assets/js/proj4.js'</span>;</span>
<span class="change"><span class="token keyword">import</span> {proj4} <span class="token keyword">from</span> <span class="token string">'proj4rs/proj4.js'</span>;</span>
<span class="token keyword">import</span> {ScaleLine, defaults <span class="token keyword">as</span> defaultControls} <span class="token keyword">from</span> <span class="token string">'ol/control.js'</span>;
<span class="token keyword">import</span> {fromLonLat} <span class="token keyword">from</span> <span class="token string">'ol/proj.js'</span>;
<span class="token keyword">import</span> {register} <span class="token keyword">from</span> <span class="token string">'ol/proj/proj4.js'</span>;
Expand Down

0 comments on commit d7b4189

Please sign in to comment.