Deprecated
Google has now stopped its Earth API and Maps API is a paid for API nowadays. Some capabilities have also been either removed or changed. Therefore, I had to remove all examples of VizMap applications I had created. I didn’t remove the entire topic as I thought some of the code may still be useful with some modifications.
Page Content
hide
VizMap: the framework javascript
This relates to Data Driven Mapping applications
For this example I had created a Concerts/Venues example that is now deprecated. The complete workbook (googlemapping.xlsm) can be downloaded (above) and the example Parameter WorkSheet is called VenuesParameters.
The VizMap framework
Excel generates a jSon description, called a framework, which is used by the VizMap application to understand what data to show and what treatment it needs. This is just a representation of VizMap Dictionary, VizMap Tabs,VizMap Measures,VizMap Controlling Execution,VizMap Spot Settings and VizMap Element positioning.
However this could just as easily be provided manually or from some other generator. If you do not want to use Excel, you can start with an already generated VizMap application such as this one and write your own framework provider function.
The generated one is given below for the Concerts/Venues example. To provide your own, simply write a replacement mcpherGetFramework() function that returns the same object structure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
//---Excel generated framework function mcpherGetFramework () { return ( { "framework":{ "dictionary":{ "Latitude":"number", "Longtitude":"number", "Title":"string", "SpotID":"number", "Content":"string", "Code":"string", "Country":"string", "Customer":"string", "State":"string", "City":"string", "Address":"string", "ID":"number", "Price":"number", "Orders":"number", "Quantity":"number", "Photo":"string" }, "measures":{ "Price":"sum", "Quantity":"sum", "Orders":"count" }, "control":{ "browser":"default", "provider":"google maps", "tilt":"60", "range":"500", "flyspeed":"0.7", "flyrange":"200", "flyincrement":"0.5" }, "tabs":{ "Detail":{ "filter":[ "SpotID" ], "chart":[ "Customer", "Price", "Quantity", "Orders" ], "table":[ "City", "State", "Country", "Price", "Orders", "Quantity" ], "image":"Photo" }, "World":{ "chart":[ "Country", "Price", "Quantity", "Orders" ], "table":[ "Customer", "Country", "Price", "Orders" ], "image":"Photo" }, "Country":{ "filter":[ "Code" ], "chart":[ "State", "Price", "Quantity", "Orders" ], "table":[ "Customer", "State", "Price", "Orders" ], "image":"Photo" }, "State":{ "filter":[ "Code", "State" ], "chart":[ "City", "Price", "Quantity", "Orders" ], "table":[ "Customer", "City", "Price", "Orders" ], "image":"Photo" }, "City":{ "filter":[ "Code", "State", "City" ], "chart":[ "Customer", "Price", "Quantity", "Orders" ], "table":[ "Customer", "Price", "Orders", "Quantity" ], "image":"Photo" } }, "elements":{ "content":{ "position":"2", "show":"yes" }, "filters":{ "position":"4", "show":"no" }, "image":{ "position":"3", "show":"yes" }, "checks":{ "position":"5", "show":"yes" }, "table":{ "position":"6", "show":"yes" }, "summary":{ "position":"7", "show":"yes" }, "chart":{ "position":"8", "show":"yes" }, "title":{ "position":"1", "show":"yes" }, "navigate":{ "position":"11", "show":"yes" } }, "spots":{ "earth marker":"Photo", "maps marker":"" } } } ) ; } |