Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Alexander_Thor
Employee
Employee

Google Maps - Cluster

Google Maps Extension with Cluster support.

QlikTech takes no responsibility for any code and QlikTech Support Agreement does not cover issues with this extension.

Please review Googles license agreement before you put this into production.

Introduction

This is a QlikView extension object that integrates Google Maps Javascript API V3 and a third party library called MarkerClusterPlus into QlikView.

Load a set a coordinates into QlikView and visualize them together with this extension. The clustering feature is create when you have alot of data points and needs to group/cluster them together for greater visability and performance.

The maxzoom property defines at what zoom level you want your markers clustered. The grid size property controls how big or small cluster grid size you want.

You can either use the extension 'as is' or use it as a base to further customize it to fit your needs.

Download the extension and view source code at: https://github.com/mindspank/GoogleMaps-Cluster-QV11

cluster.PNG

If you build something awesome please share it with the community!

Live long and prosper.


2015-02-15
Removed download from post, please grab the latest version from Github instead.

2014-02-03

Various fixes.


2014-01-09

There has been numerous upgrades to the extension.

Now clusters now display the value of your expression and with added support to include more information in pop-up labels.

Example grayscale styled map included.

Possibility to show only a single cluster icon style if you do not want it to scale according to the number of markers in the cluster.


2013-06-17

Added custom marker support. Now you can specify a url for an custom marker. Accepts all major image file types.


350 Replies
Alexander_Thor
Employee
Employee
Author

I'm not sure what you are expecting here?
Your points are not close enough to each other for that zoom level to force them into a cluster.

Since the extension can show each marker without cluttering the map it will show each individual marker and not the cluster circle.

jagannalla
Partner - Specialist III
Partner - Specialist III

I want yellow circles instead of balloons in the map. Can you explain me how to do it with my own coordinates.

Eg; I want give my own Lng and Lat values for each Desc and I want to see Yellow color with circles at that coordinates.

Please explain we how to do this or give me some idea.

Anonymous
Not applicable

Thanks again that sorted that I have noticed a couple of other things however

a) changing the max zoom in the properties is not making any difference to the map at all, I feel there is something simple I am overlooking but if not any advice would be helpful

Capture27.JPG

b) the triggers in my document (onopen and onactivate etc) are no longer working on the webserver, is there any known issue with the extension that could cause this?

Not applicable

Dear Alexander Karlson, I´m facing some setbacks with the cluster maps extention in the qlikview server. In the desktop enviroment it was just fine. But when i try to deploy into the server, copying the files and pasting them in the server, the map simply doesn´t show up in the browser.

Do you have any idea what could be happening?

Not applicable

Hello Alex,

Very appreciated for your creative job.

I have a quick question, is there any way I could change red marker to a cluster, even for a single postcode.

Basically, the whole map is showing cluster with measure in the middle, even for one postcode only.

Many thanks,

Maggie

Not applicable

Hi Alex, I have another question.

How canI suppress zero values from map? What I mean is if the expression result is 0, I don't want to show this coordinate on map.

Regards,

Maggie

arulsettu
Master III
Master III

Hi Alexander Karlsson

When i click to a single cluster its showing maximum zoom. i changed max zoom in properties but no use. what i need is when click a cluster the zoom should be in particular level can u tell me how?

thanks

Alexander_Thor
Employee
Employee
Author

The max zoom property controls at which zoom level the clustering should stop, i.e if you zoom in the map you don't want to cluster any markers below zoom level 5 for example.

When you click the cluster the map will zoom to automatically fit the markers that were part of the cluster on the screen. If you want to specify a maximum level that the map itself can zoom to you could edit the script.js file and specify it in the map options (line 115).

See the google maps api documentation for more information, Google Maps JavaScript API V3 Reference - Google Maps JavaScript API v3 — Google Developers

You could also override the zoom behavior of the cluster, so that it doesn't zoom, by setting zoomOnClick to false in the cluster options on line 229.

You could then implement your own click handler that you can customize to do whatever you want, see the markerclusterplus documentation for more info
MarkerClustererPlus for Google Maps V3 v2.1.2 [May 28, 2014] Reference

Alexander_Thor
Employee
Employee
Author

Hi Maggie,

Sure, just use a normal qv expression. Something like,

If(Sum(MyValue) =< 0, null(), Sum(MyValue))

The extension automatically suppresses null values so force 0 values to display as null.

Alexander Karlsson

Software Demonstration Architect

Mobile: +1 215-713-7750

Skype: qlikander

Email: Alexander.Karlsson@qlik.com

Qlik

150 N. Radnor Chester Road

Suite E-120

Radnor Pennsylvania 19087

qlik.com<http://www.qlik.com/>

<http://qlik.com/>

Not applicable

Hi Alex

I have downloaded the new qar file and installed it.(From GitHub) On your image of the map the clustering changes color. (Seems like a range auto calculation based on the density)

On mine it doesn't? (Please see below) I have read all the comments and replies on this topic and no one seems to ask this question except one person where you say "its not possible to create you own range".

Please let me know if i am being stupid.

Thanks in advance.Maps.JPG