Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Google map report and filling the color at region/site dynamic
Srinivas Yarra
<p>Hi,</p>
<p> </p>
<p>How to create a Google map report using Birt and filling the red/blue/green colours based on threshold/KPI value in region/site.</p>
<p> </p>
<p><strong>Ex</strong>: 2G/3G network Cell Availability (6pm-10pm) in particular region. We have to highlight the colour based Cell Availability KPI in selected region. Please find the sample output map format in the attachments.</p>
<p> </p>
<p>We are using Birt Design professional Version: 4.4.0 and Build id: v20150623.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
Clement Wong
<p>It's easy to use the <a data-ipb='nomediaparse' href='
http://www.actuate.com/download/whitepapers/BIRT-iHub-3-1-TSNF.pdf#page=7'>Custom
Visualization Report Item</a> available starting with iHub 3.1 to integrate Google Maps.</p>
<p> </p>
<p>Here are some DevShare examples:</p>
<p><a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/1120-ihub-31-custom-visualization-examples/'>Custom
Visualization Examples using Google Maps and Leaflet, and others</a></p>
<p><a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/1129-ihub-31-custom-visualization-google-map-with-heatmap-layer/'>Custom
Visualization Example using Google Map and a Heat Map Layer</a></p>
<p> </p>
<p>Now, the question for you is how are regions defined? What is that a map of? Can you provide sample data?</p>
Srinivas Yarra
<p>Hi Clement,</p>
<p> </p>
<p>Thank you for your reply.</p>
<p> </p>
<p>Previous attached map is Divisions of Bangladesh. We want to highlight the previous week data in one particular district of one division as highlighted as red colour.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
<p> </p>
<p> </p>
<p> </p>
Srinivas Yarra
<p>Hi Clement,</p>
<p> </p>
<p>Thank you for your reply.</p>
<p> </p>
<p>Previous attached map is Divisions of Bangladesh. We want to highlight the previous week data in one particular district of one division as highlighted as red colour.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
<p> </p>
<p> </p>
<p> </p>
Srinivas Yarra
<p>Hi Clement,</p>
<p> </p>
<p>We got one sample example geo location report from iHub server sample applications. Here, we are able to highlighted the division based on wealth value. But not the district and thana etc. It is in built functionality of Birt.</p>
<p> </p>
<p>We added below district information in data file, but chart/map is not considered these data.</p>
<p>Natore 293070 Bogra 273070</p>
<p> </p>
<p>Is it possible to highlight the district or thana of Bangladesh with help of birt in-built functionality?</p>
<p> </p>
<p>Please find the sample data and report which is working as expected upto division not district or thana in the attachments.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
Clement Wong
<p>The HTML5 map for Bangladesh that is provided with commercial BIRT has only 7 <strong>divisions</strong>. It's missing Mymensingh (based on <a data-ipb='nomediaparse' href='
https://en.wikipedia.org/wiki/Divisions_of_Bangladesh).'>https://en.wikipedia.org/wiki/Divisions_of_Bangladesh).</a></p>
;
<p> </p>
<p>It looks like the latest version of FusionMaps (which the HTML5 maps are based) have 8 divisions (reference @ <a data-ipb='nomediaparse' href='
http://www.fusioncharts.com/dev/maps/spec-sheets/bangladesh.html). '>http://www.fusioncharts.com/dev/maps/spec-sheets/bangladesh.html). </a>Please
open a Support ticket to have them file a ticket so that it can be considered to be addressed in the next release. </p>
<p> </p>
<p>Both Natore and Bogra are districts, which the HTML5 maps does not provide that level of detail. </p>
<p> </p>
<p>There are 64 districts and then 111 subdistricts (upazilas / thanas). Reference @ <a data-ipb='nomediaparse' href='
https://en.wikipedia.org/wiki/Administrative_geography_of_Bangladesh'>https://en.wikipedia.org/wiki/Administrative_geography_of_Bangladesh</a></p>
;
<p> </p>
<p>If we can get a KML or geoJSON of the districts, we can plot them using the Custom Visualization Report Item with Google Maps, Leaflet, or Highmaps from Highcharts.</p>
Srinivas Yarra
<p>Thank you Clement for your valuable information.</p>
<p> </p>
<p>Kindly help me how can we generate google map report with custom visualization using bangladesh.csv in the attachments.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
Clement Wong
<p>That CSV has missing KML tags data in the geometry column, and it doesn't contain all 463 subdistricts.</p>
<p> </p>
<p>From the CSV you attached, it appears that you got it from here (<a data-ipb='nomediaparse' href='
https://www.google.com/fusiontables/DataSource?docid=10LQaBHN-8GD2hIAbgYLnzbDb2n0umBujesJbDA8#rows:id=1)?'>https://www.google.com/fusiontables/DataSource?docid=10LQaBHN-8GD2hIAbgYLnzbDb2n0umBujesJbDA8#rows:id=1</a>)
?</p>
<p>So this will be a little tricky, but it's doable.</p>
<p> </p>
<p>If you use google.maps.KmlLayer, you are not able to change the properties of the <Polygon>s. There are utilities that provides KML parsing and manipulation, such as <a data-ipb='nomediaparse' href='
https://github.com/geocodezip/geoxml3'>geoxml3</a>
. Then, we can add a <PolyStyle> to change the <color>.</p>
<p> </p>
<p>The other alternative is to use Google Fusion Table for both the data and the KML.</p>
<p> </p>
<p>Google's example
@<
;/p>
<p><a data-ipb='nomediaparse' href='
https://developers.google.com/maps/documentation/javascript/examples/layer-fusiontables-styling'>https://developers.google.com/maps/documentation/javascript/examples/layer-fusiontables-styling</a></p>
;
<p> </p>
<p>Bangladesh example
@<
;/p>
<p><a data-ipb='nomediaparse' href='
https://jsfiddle.net/nc1dbf70/1/'>https://jsfiddle.net/nc1dbf70/1/</a></p>
;
<p> </p>
<p>I'm tied up at the moment, so I'm not able to provide a sample yet. Probably early next week.</p>
Srinivas Yarra
<p>Thank you Clement for your great help
.</p>
Clement Wong
<p>Oh, I thought of another way with Highmaps (from Highsoft, makers of Highcharts).</p>
<p> </p>
<p>Do you own that Google FusionTable? It needs some clean up if you are going to proceed either way.</p>
<p> </p>
<p>The "name" column has all "ID 0:" values. These values should be unique and the "name4" column values should be in its place. Can you clean up the data, or make a copy to clean up the data?</p>
<p> </p>
<p>For demo purposes, I took 4 rows and cleaned it up. Converted the KML to geoJSON (via <a>
https://ogre.adc4gis.com).</a></p>
;
<p> </p>
<p>Here's what we can do with a Custom Visualization with HighCharts' maps:</p>
<p><a data-ipb='nomediaparse' href='
http://jsfiddle.net/satakqcg/'>http://jsfiddle.net/satakqcg/</a></p>
;
<p> </p>
<p><strong>Please let me know which map you prefer before I create a sample.</strong> Each provider has their own pricing plan:</p>
<p> </p>
<p>Google Maps (free for Standard): <a data-ipb='nomediaparse' href='
https://developers.google.com/maps/pricing-and-plans/'>https://developers.google.com/maps/pricing-and-plans/</a></p>
;
<p>Highmaps (not free): <a data-ipb='nomediaparse' href='
https://shop.highsoft.com/highmaps'>https://shop.highsoft.com/highmaps</a></p>
;
<p>Here Maps (free Basic Plan for commercial): <a data-ipb='nomediaparse' href='
https://developer.here.com/plans/api/consumer-mapping'>https://developer.here.com/plans/api/consumer-mapping</a></p>
;
Srinivas Yarra
<p>Hi Clement,</p>
<p> </p>
<p>Thank you for your reply.</p>
<p> </p>
<p>Kindly provide sample report using google maps.</p>
<p> </p>
<p>I have tried one custom visualization report. Please find the sample report in the attachments.</p>
<p> </p>
<p> </p>
<p>Thanks,</p>
<p>Srinivas</p>
Clement Wong
<p>Your attached example uses the older BIRT Online (Google) Maps library. It does not export to PDF/Excel/etc... unlike the Custom Visualization Report Item which does.</p>
<p> </p>
<p>I have attached a report design that uses a Custom Visualization Report Item based on your CSV data. Your data doesn't show any particular value for the region so it's just a protoype of showing you how the Google Map polygon shape is populated. If you were to join the data with an associated value, you can just populate a column and adjust the color of the polygon accordingly.</p>
<p> </p>
<p> </p>
Srinivas Yarra
<p>Thank you so much Clement. It is working as expected. Thank you for your valuable time.</p>