still initial code for geo and map + basic ui stuff
[outofuni/glowingpatrol.git] / app / www / js / config.js
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements.  See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership.  The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License.  You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied.  See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19
20 /* geo */
21
22 var geo_default_loc=[40.712204,-74.001676];
23 var geo_default_interval=10000
24 var db_geo_config = {
25         keyname: true,
26         keytype: 'autoIncrement',
27         content: {
28                 1: [
29                         {
30                                 'coords': [40.712204,-74.001676],
31                                 'update': true
32                         }
33                 ]
34         }
35 }
36
37 /* map */
38
39 // tiles provider
40 //var map_tp_url='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
41 //var map_tp_mzoom=19;
42 var map_tp_url='http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png';
43 var map_tp_mzoom=18;
44 var map_tp_attr='&copy; <a href="http://www.openstreetmap.org/copyright">';
45 map_tp_attr+='OpenStreetMap</a>'
46
47 // zoom
48 var map_default_zoom=15;
49 var map_default_center=[40.712204,-74.001676];
50
51 // db content
52 var db_map_config = {
53         keyname: true,
54         keytype: 'autoIncrement',
55         content: {
56                 1: [
57                         {
58                                 'recenter': true,
59                                 'current': true,
60                                 'stored': true,
61                                 'objects': true,
62                         }
63                 ]
64         }
65 }
66
67 /* ui */
68
69 ionav_col_active='#ddd';
70 ionav_col_default='#999';
71