annotate geotemco/js/LineOverlay/LineOverlay.js @ 25:057b56c62b13

change the url link of LGDataverse
author Calvin Yeh <cyeh@mpiwg-berlin.mpg.de>
date Thu, 28 Sep 2017 23:56:27 +0200
parents 8f05c2a84bba
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
1 /*
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
2 * LineOverlay.js
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
3 *
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
4 * Copyright (c) 2013, Sebastian Kruse. All rights reserved.
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
5 *
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
6 * This library is free software; you can redistribute it and/or
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
7 * modify it under the terms of the GNU Lesser General Public
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
8 * License as published by the Free Software Foundation; either
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
9 * version 3 of the License, or (at your option) any later version.
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
10 *
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
11 * This library is distributed in the hope that it will be useful,
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
14 * Lesser General Public License for more details.
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
15 *
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
16 * You should have received a copy of the GNU Lesser General Public
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
17 * License along with this library; if not, write to the Free Software
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
19 * MA 02110-1301 USA
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
20 */
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
21
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
22 /**
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
23 * @class LineOverlay
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
24 * Implementation for an overlay showing lines between points
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
25 * @author Sebastian Kruse (skruse@mpiwg-berlin.mpg.de)
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
26 *
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
27 * @param {HTML object} parent div to append the LineOverlay
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
28 */
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
29 function LineOverlay(parent) {
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
30
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
31 this.lineOverlay = this;
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
32
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
33 this.parent = parent;
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
34 this.options = parent.options;
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
35 this.attachedMapWidgets = parent.attachedMapWidgets;
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
36
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
37 this.overlays = [];
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
38
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
39 this.initialize();
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
40 }
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
41
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
42 LineOverlay.prototype = {
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
43
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
44 initialize : function() {
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
45 }
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
46 };