Add Menards layer
Most of this was stolen from prior work:
6c4c2aa9ae
The one thing that took me an unreasonably long time to figure out was
that SVGs without width/height don't work (correctly? at all?) in
OpenLayers. Possibly due to this issue?:
https://github.com/openlayers/openlayers/issues/14196
Anyway, it was fixed by adding a width and height attribute to the pin
SVG.
This commit is contained in:
parent
ed0abffad1
commit
bacab31bbc
4 changed files with 321 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import Stamen from 'ol/source/Stamen.js';
|
|||
|
||||
import amtrakLayer from './amtrak/layer.js';
|
||||
import arenasLayer from './nhl-arenas/layer.js';
|
||||
import menardsLayer from './menards/layer.js';
|
||||
|
||||
const layerCategories = [
|
||||
{
|
||||
|
|
@ -56,6 +57,10 @@ const layerCategories = [
|
|||
name: "NHL Arenas",
|
||||
layer: arenasLayer,
|
||||
},
|
||||
{
|
||||
name: "Menards",
|
||||
layer: menardsLayer,
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue