Google Map in Canvas

Hi guys,

Just to share with you an example which displays TM1 data from MDX query into Google Map.

In the following a zip file you will find:
Canvas - GoogleMap.zip (2.2 MB)

  • HTML file
  • Controller
  • TM1 objects you need to include to Canvas_Sample instance
  • Accessories.png to show the star on the map

You will need to add library Google Map library into \WEB-INF\pagesheader.library.ftl

<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD7EwisYWu7REncMwI_PlayHl_gxrpcBcw&libraries=visualization"></script>

To make the example to work with your Canvas_Sample instance, you will need to

  1. Add TM1 objects in the zip folder into your C:\CWAS\db\canvas_sample\Data
  2. Add Accessories.png in the images folder

Cheers,

1 Like