Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
panel
/
geomap
/
layers
/
basemaps
/
File Content:
osm.ts
import Map from 'ol/Map'; import TileLayer from 'ol/layer/Tile'; import OSM from 'ol/source/OSM'; import { MapLayerRegistryItem, MapLayerOptions, EventBus } from '@grafana/data'; export const standard: MapLayerRegistryItem = { id: 'osm-standard', name: 'Open Street Map', description: 'Add map from a collaborative free geographic world database', isBaseMap: true, /** * Function that configures transformation and returns a transformer * @param options */ create: async (map: Map, options: MapLayerOptions, eventBus: EventBus) => ({ init: () => { return new TileLayer({ source: new OSM(), }); }, }), }; export const osmLayers = [standard];
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
carto.ts
2238 bytes
0644
esri.ts
3046 bytes
0644
generic.ts
1827 bytes
0644
index.ts
318 bytes
0644
osm.ts
696 bytes
0644
N4ST4R_ID | Naxtarrr