Skip to content

Commit 78f146a

Browse files
HaudinFlorencedavidbrochart
authored andcommitted
Remove WMS related classes in geoportal.py and Geoportal.js.
1 parent 69d5ed1 commit 78f146a

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

ipyleaflet/geoportal.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,3 @@ class GeoportalWMTS(TileLayer):
2323
_model_name = Unicode('LeafletGeoportalWMTSModel').tag(sync=True)
2424
layer_name = Unicode("ORTHOIMAGERY.ORTHOPHOTOS").tag(sync=True, o=True)
2525
apiKey = Unicode("essentiels").tag(sync=True, o=True)
26-
27-
28-
class GeoportalWMS(TileLayer):
29-
"""GeoportalWMS class, with TileLayer as parent class
30-
31-
32-
Attributes
33-
----------
34-
layer_name: string, default "GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2"
35-
name of the layer to show.
36-
apiKey: string, default "cartes"
37-
key to access a given ressource, detailed correspondances are given here : https://geoservices.ign.fr/documentation/services/tableau_ressources
38-
"""
39-
40-
_view_name = Unicode('LeafletGeoportalWMSView').tag(sync=True)
41-
_model_name = Unicode('LeafletGeoportalWMSModel').tag(sync=True)
42-
name = Unicode("GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2").tag(sync=True, o=True)
43-
layers = Unicode("essentiels").tag(sync=True, o=True)

js/src/layers/Geoportal.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,3 @@ export class LeafletGeoportalWMTSView extends layer.LeafletTileLayerView {
2323
}
2424
}
2525

26-
export class LeafletGeoportalWMSModel extends layer.LeafletTileLayerModel {
27-
defaults() {
28-
return {
29-
...super.defaults(),
30-
_view_name: 'LeafletGeoportalWMSView',
31-
_model_name: 'LeafletGeoportalWMSModel',
32-
layer_name : "GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2",
33-
apiKey : "essentiels"
34-
};
35-
}
36-
}
37-
38-
export class LeafletGeoportalWMSView extends layer.LeafletTileLayerView {
39-
create_obj() {
40-
this.obj = L.geoportalLayer.WMS({layer : this.model.get('layer_name'), apiKey : this.model.get('apiKey')})
41-
}
42-
}

0 commit comments

Comments
 (0)