Skip to Content

Hello everyone,

Here I would like to share what i tried in order to implement the maps in Design Studio report.I am sure that the developers of Design Studio will provide various maps components in future.Untill then this could be a workaround for smaller set of data,but this cant be used for productive usage where we have more number of country values(in such cases,this approach may lead to lot of coding).

Lets move on…

1.Create two data sources on top of same Query or HANA View

Insert a cross tab and assign it to the Data Source 2 which has defined with Initial view.So you will get the following…

Edit Initianl View Pane :

Image_1.JPG

Cross tab in the canvas :

Image_2.JPG

2. Now place the Grid Component and place the Map image in it along with some text elements to show the Measure(AMOUNT in this case) values on click.You can write some CSS Style coding for the text elements based on your need.

You can also place each text element in Pop up element and assign some predefined animations,to make it even more attractive at runtime.

Image_3.JPG

3. Now in the “On Select” event of Cross Tab,write the following code…

Image_4.JPG

Here the “IF” condition is written for each value of a country,thatswhy I meantioned before that this may lead to lot of coding depending on the value of an attribute.

4. Save and Execute the report.Now selecting the respective country in Crosstab,will show the AMOUNT in the map.

Image_5.JPG

Hope this helps.

Comments are always welcome.Thanks.

Rgds,Murali

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Former Member

    Nice work  Muralikrishnan,

    But moving forward, we need integration with google maps (or any other popular mapping API’s), and also ability to port the same experience on mobile as well.

    Do you have any idea or opinion on such road map?

    Regards

    Sushant

    (0) 
    1. Muralikrishnan E Post author

      Yes, Sushant.Providing Maps component is there in the roadmap,but incorporating Google maps is something which is highly needed and hope it will also be available in near future.

      Rgds,Murali

      (0) 

Leave a Reply