kopia lustrzana https://github.com/robhawkes/vizicities
Fixed a bug with the picking events being incorrect
rodzic
44999b26aa
commit
643b3ae36d
|
@ -116,6 +116,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
|
||||||
var _geoLatLon2 = _interopRequireDefault(_geoLatLon);
|
var _geoLatLon2 = _interopRequireDefault(_geoLatLon);
|
||||||
|
|
||||||
|
var _enginePickingMaterial = __webpack_require__(85);
|
||||||
|
|
||||||
|
var _enginePickingMaterial2 = _interopRequireDefault(_enginePickingMaterial);
|
||||||
|
|
||||||
var _utilIndex = __webpack_require__(92);
|
var _utilIndex = __webpack_require__(92);
|
||||||
|
|
||||||
var _utilIndex2 = _interopRequireDefault(_utilIndex);
|
var _utilIndex2 = _interopRequireDefault(_utilIndex);
|
||||||
|
@ -151,6 +155,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
point: _geoPoint.point,
|
point: _geoPoint.point,
|
||||||
LatLon: _geoLatLon2['default'],
|
LatLon: _geoLatLon2['default'],
|
||||||
latLon: _geoLatLon.latLon,
|
latLon: _geoLatLon.latLon,
|
||||||
|
PickingMaterial: _enginePickingMaterial2['default'],
|
||||||
Util: _utilIndex2['default']
|
Util: _utilIndex2['default']
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4055,7 +4060,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
this._resizeHandler = this._resizeTexture.bind(this);
|
this._resizeHandler = this._resizeTexture.bind(this);
|
||||||
window.addEventListener('resize', this._resizeHandler, false);
|
window.addEventListener('resize', this._resizeHandler, false);
|
||||||
|
|
||||||
this._mouseUpHandler = this._resizeTexture.bind(this);
|
this._mouseUpHandler = this._onMouseUp.bind(this);
|
||||||
this._world._container.addEventListener('mouseup', this._mouseUpHandler, false);
|
this._world._container.addEventListener('mouseup', this._mouseUpHandler, false);
|
||||||
|
|
||||||
this._world.on('move', this._onWorldMove, this);
|
this._world.on('move', this._onWorldMove, this);
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -45,7 +45,7 @@ class Picking {
|
||||||
this._resizeHandler = this._resizeTexture.bind(this);
|
this._resizeHandler = this._resizeTexture.bind(this);
|
||||||
window.addEventListener('resize', this._resizeHandler, false);
|
window.addEventListener('resize', this._resizeHandler, false);
|
||||||
|
|
||||||
this._mouseUpHandler = this._resizeTexture.bind(this);
|
this._mouseUpHandler = this._onMouseUp.bind(this);
|
||||||
this._world._container.addEventListener('mouseup', this._mouseUpHandler, false);
|
this._world._container.addEventListener('mouseup', this._mouseUpHandler, false);
|
||||||
|
|
||||||
this._world.on('move', this._onWorldMove, this);
|
this._world.on('move', this._onWorldMove, this);
|
||||||
|
|
|
@ -15,6 +15,8 @@ import PointLayer, {pointLayer} from './layer/geometry/PointLayer';
|
||||||
import Point, {point} from './geo/Point';
|
import Point, {point} from './geo/Point';
|
||||||
import LatLon, {latLon} from './geo/LatLon';
|
import LatLon, {latLon} from './geo/LatLon';
|
||||||
|
|
||||||
|
import PickingMaterial from './engine/PickingMaterial';
|
||||||
|
|
||||||
import Util from './util/index';
|
import Util from './util/index';
|
||||||
|
|
||||||
const VIZI = {
|
const VIZI = {
|
||||||
|
@ -48,6 +50,7 @@ const VIZI = {
|
||||||
point: point,
|
point: point,
|
||||||
LatLon: LatLon,
|
LatLon: LatLon,
|
||||||
latLon: latLon,
|
latLon: latLon,
|
||||||
|
PickingMaterial: PickingMaterial,
|
||||||
Util: Util
|
Util: Util
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue