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:
Chandler Swift 2023-07-04 00:08:39 -05:00
parent ed0abffad1
commit bacab31bbc
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
4 changed files with 321 additions and 0 deletions

View file

@ -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,
},
]
}
];