dojox/geo/charting/_Marker.js

  • Provides:

    • dojox.geo.charting._Marker
  • dojox.geo.charting._Marker

    • type
      Function
    • parameters:
      • markerData: (typeof )
      • map: (typeof )
    • source: [view]
        var mapObj = map.mapObj;
        this.features = mapObj.features;
        this.markerData = markerData;
    • summary
  • dojox.geo.charting._Marker.show

    • type
      Function
    • parameters:
      • featureId: (typeof )
    • source: [view]
        this.markerText = this.features[featureId].markerText || this.markerData[featureId] || featureId;
        this.currentFeature = this.features[featureId];
        dojox.geo.charting.showTooltip(this.markerText, this.currentFeature.shape, "before");
    • summary
  • dojox.geo.charting._Marker.hide

    • type
      Function
    • source: [view]
        dojox.geo.charting.hideTooltip(this.currentFeature.shape);
    • summary
  • dojox.geo.charting._Marker._getGroupBoundingBox

    • type
      Function
    • parameters:
      • group: (typeof )
    • source: [view]
        var shapes = group.children;
        var feature = shapes[0];
        var bbox = feature.getBoundingBox();
        this._arround = dojo.clone(bbox);
        dojo.forEach(shapes, function(item){
         var _bbox = item.getBoundingBox();
         this._arround.x = Math.min(this._arround.x, _bbox.x);
         this._arround.y = Math.min(this._arround.y, _bbox.y);
        },this);
    • summary
  • dojox.geo.charting._Marker._toWindowCoords

    • type
      Function
    • parameters:
      • arround: (typeof )
      • coords: (typeof )
      • containerSize: (typeof )
    • source: [view]
        var toLeft = (arround.x - this.topLeft[0]) * this.scale;
        var toTop = (arround.y - this.topLeft[1]) * this.scale
        if (dojo.isFF == 3.5) {
         arround.x = coords.x;
         arround.y = coords.y;
        }
        else if (dojo.isChrome) {
         arround.x = containerSize.x + toLeft;
         arround.y = containerSize.y + toTop;
        }
        else {
         arround.x = coords.x + toLeft;
         arround.y = coords.y + toTop;
        }
        arround.width = (this.currentFeature._bbox[2]) * this.scale;
        arround.height = (this.currentFeature._bbox[3]) * this.scale;
        arround.x += arround.width / 6;
        arround.y += arround.height / 4;
    • summary
  • dojox.geo.charting._Marker.markerText

    • summary
  • dojox.geo.charting._Marker.currentFeature

    • summary
  • dojox.geo.charting._Marker._arround

    • summary
  • dojox.geo.charting._Marker._arround.x

    • summary
  • dojox.geo.charting._Marker._arround.y

    • summary
  • dojox.geo.charting._Marker.features

    • summary
  • dojox.geo.charting._Marker.markerData

    • summary
  • dojox.geo.charting

    • type
      Object
    • summary
  • dojox.geo

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary