Skip to content

Commit

Permalink
dont force IdentifyFeatures passed through to include a map
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Dec 21, 2017
1 parent 3cb108d commit 32e14fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ module.exports = function (config) {

// list of files / patterns to load in the browser
// not sure why tests are failing when files are loaded in bulk

files: [
'node_modules/leaflet/dist/leaflet.css',
'node_modules/leaflet/dist/leaflet-src.js',
'dist/esri-leaflet-debug.js',
// these two are the tempermental ones
'spec/Layers/ImageMapLayerSpec.js',
'spec/Layers/DynamicMapLayerSpec.js',
'spec/**/*Spec.js'
'spec/Layers/BasemapLayerSpec.js',
'spec/Layers/TiledMapLayerSpec.js',
'spec/Layers/RasterLayerSpec.js',
// 'spec/Layers/*Spec.js',
'spec/Tasks/*Spec.js',
'spec/Services/*Spec.js',
'spec/*Spec.js'
],

// list of files to exclude
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/DynamicMapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export var DynamicMapLayer = RasterLayer.extend({

var identifyRequest;
if (this.options.popup) {
identifyRequest = this.options.popup.at(e.latlng);
identifyRequest = this.options.popup.on(this._map).at(e.latlng);
} else {
identifyRequest = this.identify().on(this._map).at(e.latlng);
}
Expand Down

0 comments on commit 32e14fd

Please sign in to comment.