Add Giliberto's Tacos
Requested-By: Isaac Swift
This commit is contained in:
parent
041ebaabe0
commit
fd40ab6f7a
4 changed files with 127 additions and 0 deletions
25
layers/chains/gilibertos/layer.js
Normal file
25
layers/chains/gilibertos/layer.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import VectorLayer from 'ol/layer/Vector';
|
||||
import {Vector as VectorSource} from 'ol/source.js';
|
||||
import GeoJSON from 'ol/format/GeoJSON.js';
|
||||
|
||||
import {Style} from 'ol/style.js';
|
||||
import Icon from 'ol/style/Icon.js';
|
||||
|
||||
import url from './data.geojson?url';
|
||||
import pin from '../../../generic-pin.svg?url';
|
||||
|
||||
const vectorLayer = new VectorLayer({
|
||||
source: new VectorSource({
|
||||
url: url,
|
||||
format: new GeoJSON,
|
||||
}),
|
||||
style: new Style({
|
||||
image: new Icon({
|
||||
anchor: [0.5, 1],
|
||||
src: pin,
|
||||
color: [255, 0, 0],
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
||||
export default vectorLayer;
|
||||
Loading…
Add table
Add a link
Reference in a new issue