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.
//---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":"" } } } ) ; }As usual questions, feedback and comments are welcome at our forum. Now lets take a look at how to provide the Providing VizMap Data without Excel