gis-api
Version:
GIS API for DHIS 2 based on Leaflet
26 lines (19 loc) • 507 B
JavaScript
// Currently not in use
import L from 'leaflet';
export const GeoServer = L.TileLayer.WMS.extend({
defaultWmsParams: {
service: 'WMS',
request: 'GetMap',
version: '1.1.1',
layers: '',
styles: '',
format: 'image/png',
transparent: true,
},
initialize(options) {
L.TileLayer.WMS.prototype.initialize.call(this, options.url, options);
},
});
export default function geoServer(options) {
return new GeoServer(options);
}