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.
VizMap: the data 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 data
Excel generates a jSon version of the data to be used by the VizMap application. Naturally this data must match that described by the VizMap Framework.
However this could just as easily be provided manually or from some other generator – for example from a webservice. 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 data provider function.
The generated one is given below for the Concerts/Venues example. To provide your own, simply write a replacement mcpherGetData() 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 177 |
//---Excel generated data function mcpherGetData () { return ( { "data":{ "cJobject":[ { "Latitude":"41.976641", "Longtitude":"-87.86369", "SpotID":"101", "Title":"Rosemount theatre", "Content":"\<b\>Rosemount theatre\</b\>\<br\>Rosemont Theater\<br\> 5400 N River Rd\<br\> Rosemont\<br\> IL 60018-5409\<br\> USA\<br\>", "Code":"US", "Country":"United States", "Venue":"Rosemount theatre", "State":"IL", "City":"Rosemont", "Address":"Rosemont Theater, 5400 N River Rd, Rosemont, IL 60018-5409, USA", "Shows":"101", "ID":"101", "Average Price":"100", "Price":"100", "Date":"11/5/2011", "Artist":"Sting", "Artist Photo":"https://ramblings.mcpher.com/images/pic243.png", "Venue Photo":"https://ramblings.mcpher.com/images/pic239.png" }, { "Latitude":"41.976641", "Longtitude":"-87.86369", "SpotID":"101", "Title":"Rosemount theatre", "Content":"\<b\>Rosemount theatre\</b\>\<br\>Rosemont Theater\<br\> 5400 N River Rd\<br\> Rosemont\<br\> IL 60018-5409\<br\> USA\<br\>", "Code":"US", "Country":"United States", "Venue":"Rosemount theatre", "State":"IL", "City":"Rosemont", "Address":"Rosemont Theater, 5400 N River Rd, Rosemont, IL 60018-5409, USA", "Shows":"101", "ID":"101", "Average Price":"90", "Price":"90", "Date":"11/13/2011", "Artist":"Paul Simon", "Artist Photo":"https://ramblings.mcpher.com/images/pic241.png", "Venue Photo":"https://ramblings.mcpher.com/images/pic239.png" }, { "Latitude":"30.029015", "Longtitude":"-90.0522531", "SpotID":"102", "Title":"UNO Lakefront Arena", "Content":"\<b\>UNO Lakefront Arena\</b\>\<br\>6801 Franklin Ave\<br\> New Orleans\<br\> LA 70122\<br\> USA\<br\>", "Code":"US", "Country":"United States", "Venue":"UNO Lakefront Arena", "State":"LA", "City":"New Orleans", "Address":"6801 Franklin Ave, New Orleans, LA 70122, USA", "Shows":"102", "ID":"102", "Average Price":"120", "Price":"120", "Date":"11/4/2011", "Artist":"Linkin Park", "Artist Photo":"https://ramblings.mcpher.com/images/pic242.png", "Venue Photo":"https://ramblings.mcpher.com/images/pic238.png" }, { "Latitude":"34.6381228", "Longtitude":"135.4253848", "SpotID":"103", "Title":"Intex", "Content":"\<b\>Intex\</b\>\<br\>?559-0034\<br\> Japan\<br\>", "Code":"JP", "Country":"Japan", "Venue":"Intex", "State":"", "City":"Suminoe Ward", "Address":"?559-0034, Japan", "Shows":"103", "ID":"103", "Average Price":"80", "Price":"80", "Date":"9/16/2011", "Artist":"Linkin Park", "Artist Photo":"https://ramblings.mcpher.com/images/pic242.png", "Venue Photo":"https://ramblings.mcpher.com/images/pic240.png" }, { "Latitude":"37.5198209", "Longtitude":"127.1227901", "SpotID":"104", "Title":"olympic park", "Content":"\<b\>olympic park\</b\>\<br\>Olympic Park\<br\> 88 Bangi-dong\<br\> Songpa-gu\<br\> Seoul\<br\> South Korea\<br\>", "Code":"KR", "Country":"South Korea", "Venue":"olympic park", "State":"", "City":"Seoul", "Address":"Olympic Park, 88 Bangi-dong, Songpa-gu, Seoul, South Korea", "Shows":"104", "ID":"104", "Average Price":"67", "Price":"67", "Date":"9/8/2011", "Artist":"Linkin Park", "Artist Photo":"https://ramblings.mcpher.com/images/pic242.png", "Venue Photo":"" }, { "Latitude":"13.8448335", "Longtitude":"100.3610179", "SpotID":"105", "Title":"aktiv square", "Content":"\<b\>aktiv square\</b\>\<br\>Ban Mai\<br\> Bang Yai\<br\> Nonthaburi 11140\<br\> Thailand\<br\>", "Code":"TH", "Country":"Thailand", "Venue":"aktiv square", "State":"", "City":"Bang Yai", "Address":"Ban Mai, Bang Yai, Nonthaburi 11140, Thailand", "Shows":"105", "ID":"105", "Average Price":"50", "Price":"50", "Date":"9/23/2011", "Artist":"Linkin Park", "Artist Photo":"https://ramblings.mcpher.com/images/pic242.png", "Venue Photo":"" }, { "Latitude":"55.7532225", "Longtitude":"37.6215052", "SpotID":"106", "Title":"red square", "Content":"\<b\>red square\</b\>\<br\>Red Square\<br\> Moscow\<br\> Russia\<br\>", "Code":"RU", "Country":"Russian Federation", "Venue":"red square", "State":"administrativnyy okrug Tsentral\'nyy", "City":"Moscow", "Address":"Red Square, Moscow, Russia", "Shows":"106", "ID":"106", "Average Price":"20", "Price":"20", "Date":"6/23/2011", "Artist":"Linkin Park", "Artist Photo":"https://ramblings.mcpher.com/images/pic242.png", "Venue Photo":"" }, { "Latitude":"52.3123574", "Longtitude":"4.9441509", "SpotID":"107", "Title":"heineken hall", "Content":"\<b\>heineken hall\</b\>\<br\>Arena Boulevard 590\<br\> 1101 Amsterdam Zuidoost\<br\> The Netherlands\<br\>", "Code":"NL", "Country":"The Netherlands", "Venue":"heineken hall", "State":"Government of Amsterdam", "City":"Amsterdam Zuidoost", "Address":"Arena Boulevard 590, 1101 Amsterdam Zuidoost, The Netherlands", "Shows":"107", "ID":"107", "Average Price":"40", "Price":"40", "Date":"6/23/2011", "Artist":"Toto", "Artist Photo":"https://ramblings.mcpher.com/images/pic244.png", "Venue Photo":"" } ] } } ) ; } |
As usual questions, feedback and comments are welcome at our forum. Now lets take a look at how to provide the framework application without using Excel.