]> git.argeo.org Git - gpl/argeo-suite.git/blob - MapPart.js
ef19f58143143de9cf0ea5d25a50ccf0a7173df5
[gpl/argeo-suite.git] / MapPart.js
1 /** API to be used by Java.
2 * @module MapPart
3 */
4
5 /** Abstract base class for displaying a map. */
6 export default class MapPart {
7
8 /** Zoom the map to the given value. */
9 setZoom(zoom) {
10 throw new Error("Abstract method");
11 }
12
13 /** Set the center of the map to the given coordinates. */
14 setCenter(lng, lat) {
15 throw new Error("Abstract method");
16 }
17
18 /** Add a single point. */
19 addPoint(lng, lat, style) {
20 throw new Error("Abstract method");
21 }
22
23 addUrlLayer(url, format) {
24 throw new Error("Abstract method");
25 }
26 }