annotate geotemco/js/LineOverlay/LineOverlayConfig.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 * LineOverlayConfig.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 LineOverlayConfig
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
24 * LineOverlay Configuration File
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 function LineOverlayConfig(options) {
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
28 this.options = {
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
29 showArrows : true,
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
30 showLines : "both", //which directions will be shown: "both", "inbound", "outbound"
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
31 onlyShowSelectedOrHighlighted : false, //only show lines in case of selection/highlight
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
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
34 if ( typeof options != 'undefined') {
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
35 $.extend(this.options, options);
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
8f05c2a84bba Apply new platin and Add tree layers
nylin@mpiwg-berlin.mpg.de
parents:
diff changeset
38 };