Skip to content

Commit

Permalink
[RFC] moving to ES6 classes ol7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Aug 24, 2022
1 parent b9003a1 commit 8cb5a63
Show file tree
Hide file tree
Showing 14 changed files with 3,218 additions and 3,142 deletions.
2,639 changes: 1,350 additions & 1,289 deletions dist/ol-ext.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/ol-ext.min.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions examples/style/map.style.chart+text.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>

<!-- Openlayers -->
<link rel="stylesheet" href="https://openlayers.org/en/v6.15.1/css/ol.css" />
<script type="text/javascript" src="https://openlayers.org/en/v6.15.1/build/ol.js"></script>
<link rel="stylesheet" href="https://openlayers.org/en/latest/legacy/ol.css" />
<script type="text/javascript" src="https://openlayers.org/en/latest/legacy/ol.js"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL,Object.assign"></script>

<!-- ol-ext -->
Expand Down Expand Up @@ -87,7 +87,6 @@ <h1>ol-ext: chart style + values</h1>

// Show values on select
if (sel){
console.log(sel)
var sum = feature.get("sum");

var s = 0;
Expand Down
4 changes: 2 additions & 2 deletions examples/style/map.style.chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>

<!-- Openlayers -->
<link rel="stylesheet" href="https://openlayers.org/en/v6.15.1/css/ol.css" />
<script type="text/javascript" src="https://openlayers.org/en/v6.15.1/build/ol.js"></script>
<link rel="stylesheet" href="https://openlayers.org/en/latest/legacy/ol.css" />
<script type="text/javascript" src="https://openlayers.org/en/latest/legacy/ol.js"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL,Object.assign"></script>

<!-- ol-ext -->
Expand Down
8 changes: 4 additions & 4 deletions examples/style/map.style.font.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>

<!-- Openlayers -->
<link rel="stylesheet" href="https://openlayers.org/en/v6.15.1/css/ol.css" />
<script type="text/javascript" src="https://openlayers.org/en/v6.15.1/build/ol.js"></script>
<link rel="stylesheet" href="https://openlayers.org/en/latest/legacy/ol.css" />
<script type="text/javascript" src="https://openlayers.org/en/latest/legacy/ol.js"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL,Object.assign"></script>

<!-- ol-ext -->
Expand Down Expand Up @@ -296,9 +296,9 @@ <h2>Text</h2>
vector.changed();
}
// Fill font glyphs
var glyph = ol.style.FontSymbol.prototype.defs.glyphs;
var glyph = ol.style.FontSymbol.defs.glyphs;
var opt = $(".options");
for (var font in ol.style.FontSymbol.prototype.defs.fonts) {
for (var font in ol.style.FontSymbol.defs.fonts) {
$("<h2>").text(font+":").appendTo(opt);
for (var i in glyph) {
if (glyph[i].font == font) {
Expand Down
Loading

0 comments on commit 8cb5a63

Please sign in to comment.