Skip to content

Commit df6195f

Browse files
prushforprushfor
authored andcommitted
Add images directory and Leaflet default icon images. This was the simplest
solution to the problem of having different paths to images on different source code trees. Means that the images directory is distributed with builds of web-map, unfortunately (because its a duplicate of Leaflet's), but that's easier than changing code in Leaflet.css for different distrubutions.
1 parent 685d483 commit df6195f

File tree

7 files changed

+3
-0
lines changed

7 files changed

+3
-0
lines changed

images/layers-2x.png

2.83 KB
Loading

images/layers.png

1.47 KB
Loading

images/marker-icon-2x.png

3.94 KB
Loading

images/marker-icon.png

1.71 KB
Loading

images/marker-shadow.png

797 Bytes
Loading

map-area.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161

6262
// don't go through this if already done
6363
if (!this._feature) {
64+
// TODO??? SCALE this.coords if the this._map.poster exists because
65+
// the img might have been scaled by CSS.
6466
// compute the style properties to be applied to the feature
6567
var options = this._styleToPathOptions(window.getComputedStyle(this)),
6668
points = this.coords ? this._coordsToArray(this.coords): null;

web-map.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
}
261261
}
262262
this._setUpEvents();
263+
this.fire('load', {target: this});
263264
}
264265

265266
},10);

0 commit comments

Comments
 (0)