e_markerclusterer 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +9 -2
- data/lib/assets/javascripts/e_markerclusterer.js +16 -8
- data/lib/e_markerclusterer/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: d1489323debd64bfb939394b1bdc427c31351e98
         | 
| 4 | 
            +
              data.tar.gz: 15d65bb4366e620b7b585a2c8a6e5e025b15023f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: b5c07bf56fd4ed292ee2e60d10f4a1ea680f52c93ccba2ece944e02a962394644374d0ff2c1eef8c2b6b457423d2a6c83952a582ecd369b1515baffb72306162
         | 
| 7 | 
            +
              data.tar.gz: 3e54885a102f6bbaac0666fb3440224f134c139820687d9eb95be7e03f513a894f4aef8784e2f3f45d8db915321f24122c31c5e6feb56a5f8636ee2ac70d8209
         | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -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 | 
            +
            ## 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_, " | 
| 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_, " | 
| 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  | 
| 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 | 
             
            };
         | 
    
        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. | 
| 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 | 
            +
            date: 2016-07-25 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rails
         |