e_markerclusterer 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fda90d57a4418f76ff26c9062c126643a9b0b2a
4
- data.tar.gz: c192acae32e08681c080c055b6c18a739ceb10af
3
+ metadata.gz: d1489323debd64bfb939394b1bdc427c31351e98
4
+ data.tar.gz: 15d65bb4366e620b7b585a2c8a6e5e025b15023f
5
5
  SHA512:
6
- metadata.gz: d2e1585009544d02f2caab1e3b372530fc900c65284dc45f872337048575d09f785afaac4281f320f3d156e59ca98ec761ddea30794193fa18002619096e35bd
7
- data.tar.gz: 5b12bbce4bf719dab00c2e0204ea80d4ebb0940822c8978aa7d522a863d212f6aee581e44f794d76ec0b2f96a131e7402a9eb9c44266d04505d14a4632329eb6
6
+ metadata.gz: b5c07bf56fd4ed292ee2e60d10f4a1ea680f52c93ccba2ece944e02a962394644374d0ff2c1eef8c2b6b457423d2a6c83952a582ecd369b1515baffb72306162
7
+ data.tar.gz: 3e54885a102f6bbaac0666fb3440224f134c139820687d9eb95be7e03f513a894f4aef8784e2f3f45d8db915321f24122c31c5e6feb56a5f8636ee2ac70d8209
data/.gitignore CHANGED
@@ -6,6 +6,7 @@ capybara-*.html
6
6
  /tmp
7
7
  /db/*.sqlite3
8
8
  /db/*.sqlite3-journal
9
+ /pkg
9
10
  /public/system
10
11
  /coverage/
11
12
  /spec/tmp
@@ -1,8 +1,15 @@
1
1
  Note: This is in reverse chronological order, so newer entries are added to the top.
2
2
 
3
- ## Enhanced MarkerClusterer 0.0.3
3
+ ## Enhanced MarkerClusterer 0.0.4
4
+
5
+ ######2016. 7. 25
6
+ * Chart triggering is changed to 'dblclick', which is to play when clearly targetted action.
7
+ * Several options only for Pie Chart are changed. Especially, slice information will be only shown when slice is selected. Those options will be settable by icon options.
4
8
 
5
- ---
9
+ ######2016. 7. 13
10
+ * Calling renderIcon function is provisionally restricted in ClusterIcon.prototype.show which induces renderings charts each marker. For many markers, performance to browse map could be critically dropped (for example, rendering one frame takes 30 seconds.)
11
+
12
+ ## Enhanced MarkerClusterer 0.0.3
6
13
 
7
14
  * An element 'legendStyle' of opt_options to MarkerClusterer is added to set styles of legend box, which set several styles like position on Map, tag id, classes, and HTML CSS.
8
15
 
@@ -129,7 +129,7 @@ ClusterIcon.prototype.onAdd = function () {
129
129
  cDraggingMapByCluster = false;
130
130
  });
131
131
 
132
- google.maps.event.addDomListener(this.div_, "click", function (e) {
132
+ google.maps.event.addDomListener(this.div_, "dblclick", function (e) {
133
133
  cMouseDownInCluster = false;
134
134
  if (!cDraggingMapByCluster) {
135
135
  var theBounds;
@@ -169,7 +169,7 @@ ClusterIcon.prototype.onAdd = function () {
169
169
  }
170
170
  });
171
171
 
172
- google.maps.event.addDomListener(this.icon_div_, "click", function (e) {
172
+ google.maps.event.addDomListener(this.icon_div_, "dblclick", function (e) {
173
173
  cMouseDownInCluster = false;
174
174
  if (!cDraggingMapByCluster) {
175
175
  var theBounds;
@@ -364,8 +364,8 @@ ClusterIcon.prototype.show = function () {
364
364
  this.icon_div_.style.cssText = this.createCss(pos);
365
365
  this.icon_div_.style.display = "";
366
366
 
367
- // redner pie chart (initial infographic chart)
368
- this.renderIcon_();
367
+ // redner infographic chart for every frame (too slow for many markers)
368
+ //this.renderIcon_();
369
369
  }
370
370
  this.visible_ = true;
371
371
  };
@@ -394,14 +394,20 @@ ClusterIcon.prototype.renderIcon_ = function() {
394
394
  backgroundColor: 'transparent',
395
395
  legend: 'none',
396
396
  pieHole: 0.5,
397
- tooltip: {text: 'both'},
398
397
  colors: iconColorsSeq,
398
+ pieSliceText: 'percentage',
399
399
  pieSliceTextStyle: {
400
400
  color: 'black',
401
401
  fontSize: 8
402
- }
402
+ },
403
+ tooltip: {
404
+ text: 'both',
405
+ trigger: 'selection'
406
+ },
403
407
  };
404
-
408
+
409
+ // currently Pie chart only
410
+ // Will be extened to various infographics
405
411
  var icon = new google.visualization.PieChart(this.icon_div_);
406
412
  icon.draw(data, options);
407
413
  }
@@ -1014,7 +1020,8 @@ MarkerClusterer.prototype.setupLegend_ = function (markers) {
1014
1020
  if (this.legendStyle_.hasOwnProperty('class')) {
1015
1021
  legend_div.className = this.legendStyle_['class'];
1016
1022
  }
1017
- legend_div.style.cssText = this.legendStyle_['css']
1023
+ legend_div.style.cssText = this.legendStyle_['css'];
1024
+ legend_div.index = this.legendStyle_['index'];
1018
1025
  this.getMap().controls[this.legendStyle_['position']].push(legend_div);
1019
1026
 
1020
1027
  for (var title in this.legend_) {
@@ -1899,5 +1906,6 @@ MarkerClusterer.IMAGE_SIZES = [53, 56, 66, 78, 90];
1899
1906
  */
1900
1907
  MarkerClusterer.LEGEND_STYLE = {
1901
1908
  css: 'margin-right: 5px; background-color: rgba(255, 255, 255, 0.5); padding: 10px; width: 123px',
1909
+ index: 1,
1902
1910
  position: google.maps.ControlPosition.RIGHT_TOP
1903
1911
  };
@@ -1,3 +1,3 @@
1
1
  module EMarkerclusterer
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e_markerclusterer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sung Gon Yi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-11 00:00:00.000000000 Z
11
+ date: 2016-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails