Skip to content

Commit b18f688

Browse files
committed
Version 1.16.6
1 parent d2e7857 commit b18f688

File tree

10 files changed

+41
-14
lines changed

10 files changed

+41
-14
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngmap",
3-
"version": "1.16.5",
3+
"version": "1.16.6",
44
"main": "./build/scripts/ng-map.js",
55
"homepage": "https://github.com/allenhwkim/angularjs-google-maps",
66
"authors": [

build/docs/NgMap.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ <h5>Parameters:</h5>
265265
</dd>
266266
</dl><dl>
267267
<dt>
268-
<a href="source/NgMap.html#line105" class="name-link">
268+
<a href="source/NgMap.html#line113" class="name-link">
269269
<h4 class="name">
270270
getGeoLocation
271271
<span class="signature">(address, options)</span>
@@ -390,7 +390,7 @@ <h5>Parameters:</h5>
390390
</dd>
391391
</dl><dl>
392392
<dt>
393-
<a href="source/NgMap.html#line140" class="name-link">
393+
<a href="source/NgMap.html#line148" class="name-link">
394394
<h4 class="name">
395395
observeAndSet
396396
<span class="signature">(attrName, object)</span>
@@ -441,7 +441,7 @@ <h5>Returns:</h5>
441441
</dd>
442442
</dl><dl>
443443
<dt>
444-
<a href="source/NgMap.html#line194" class="name-link">
444+
<a href="source/NgMap.html#line202" class="name-link">
445445
<h4 class="name">
446446
setDefaultOptions
447447
<span class="signature">(options)</span>
@@ -481,7 +481,7 @@ <h5>Parameters:</h5>
481481
</dd>
482482
</dl><dl>
483483
<dt>
484-
<a href="source/NgMap.html#line169" class="name-link">
484+
<a href="source/NgMap.html#line177" class="name-link">
485485
<h4 class="name">
486486
setStyle
487487
<span class="signature">(map)</span>

build/docs/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ <h2>To Get Started</h2><p>For Bower users, </p>
213213
console.log('markers', map.markers);
214214
console.log('shapes', map.shapes);
215215
});
216-
});</code></pre><h2>Lazy Loading of Google Maps Javascript</h2><p> Simply wrap the map tag with <code>map-lazy-load=&quot;https://maps.google.com/maps/api/js&quot;</code>.</p>
216+
});</code></pre><p>For meteor users: https://atmospherejs.com/wormy/angularjs-google-maps</p>
217+
<h2>Lazy Loading of Google Maps Javascript</h2><p> Simply wrap the map tag with <code>map-lazy-load=&quot;https://maps.google.com/maps/api/js&quot;</code>.</p>
217218
<pre class="prettyprint source"><code>&lt;div map-lazy-load=&quot;https://maps.google.com/maps/api/js&quot;>
218219
&lt;ng-map center=&quot;41,-87&quot; zoom=&quot;3&quot;>&lt;/ng-map>
219220
&lt;/div></code></pre><p> If you need to pass in an API key to the javascript, you can set a scope

build/docs/source/Attr2MapOptions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ <h1 class="title">
320320
}
321321
for (var key in output) { //jshint ignore:line
322322
var arr = output[key];
323-
if (key == "anchor" || key == "origin") {
323+
if (key == "anchor" || key == "origin" || key == "labelOrigin") {
324324
output[key] = new google.maps.Point(arr[0], arr[1]);
325325
} else if (key == "size" || key == "scaledSize") {
326326
output[key] = new google.maps.Size(arr[0], arr[1]);

build/docs/source/NgMap.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ <h1 class="title">
254254
var mapId = mapCtrl.map.id || len;
255255
if (mapCtrl.map) {
256256
for (var eventName in mapCtrl.mapEvents) {
257-
$log.debug('clearing map events', eventName);
257+
console.log('clearing map events', eventName);
258258
google.maps.event.clearListeners(mapCtrl.map, eventName);
259259
}
260260
if (mapCtrl.map.controls) {
@@ -263,6 +263,12 @@ <h1 class="title">
263263
});
264264
}
265265
}
266+
//Remove Heatmap Layers
267+
if (mapCtrl.map.heatmapLayers) {
268+
Object.keys(mapCtrl.map.heatmapLayers).forEach(function (layer) {
269+
mapCtrl.deleteObject('heatmapLayers', mapCtrl.map.heatmapLayers[layer]);
270+
});
271+
}
266272
delete mapControllers[mapId];
267273
};
268274
/**

build/scripts/ng-map.debug.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,7 @@ angular.module('ngMap', []);
24172417
}
24182418
for (var key in output) { //jshint ignore:line
24192419
var arr = output[key];
2420-
if (key == "anchor" || key == "origin") {
2420+
if (key == "anchor" || key == "origin" || key == "labelOrigin") {
24212421
output[key] = new google.maps.Point(arr[0], arr[1]);
24222422
} else if (key == "size" || key == "scaledSize") {
24232423
output[key] = new google.maps.Size(arr[0], arr[1]);
@@ -2923,7 +2923,7 @@ angular.module('ngMap', []);
29232923
var mapId = mapCtrl.map.id || len;
29242924
if (mapCtrl.map) {
29252925
for (var eventName in mapCtrl.mapEvents) {
2926-
$log.debug('clearing map events', eventName);
2926+
console.log('clearing map events', eventName);
29272927
google.maps.event.clearListeners(mapCtrl.map, eventName);
29282928
}
29292929
if (mapCtrl.map.controls) {
@@ -2932,6 +2932,14 @@ angular.module('ngMap', []);
29322932
});
29332933
}
29342934
}
2935+
2936+
//Remove Heatmap Layers
2937+
if (mapCtrl.map.heatmapLayers) {
2938+
Object.keys(mapCtrl.map.heatmapLayers).forEach(function (layer) {
2939+
mapCtrl.deleteObject('heatmapLayers', mapCtrl.map.heatmapLayers[layer]);
2940+
});
2941+
}
2942+
29352943
delete mapControllers[mapId];
29362944
};
29372945

build/scripts/ng-map.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,7 @@ angular.module('ngMap', []);
24152415
}
24162416
for (var key in output) { //jshint ignore:line
24172417
var arr = output[key];
2418-
if (key == "anchor" || key == "origin") {
2418+
if (key == "anchor" || key == "origin" || key == "labelOrigin") {
24192419
output[key] = new google.maps.Point(arr[0], arr[1]);
24202420
} else if (key == "size" || key == "scaledSize") {
24212421
output[key] = new google.maps.Size(arr[0], arr[1]);
@@ -2921,7 +2921,7 @@ angular.module('ngMap', []);
29212921
var mapId = mapCtrl.map.id || len;
29222922
if (mapCtrl.map) {
29232923
for (var eventName in mapCtrl.mapEvents) {
2924-
$log.debug('clearing map events', eventName);
2924+
void 0;
29252925
google.maps.event.clearListeners(mapCtrl.map, eventName);
29262926
}
29272927
if (mapCtrl.map.controls) {
@@ -2930,6 +2930,14 @@ angular.module('ngMap', []);
29302930
});
29312931
}
29322932
}
2933+
2934+
//Remove Heatmap Layers
2935+
if (mapCtrl.map.heatmapLayers) {
2936+
Object.keys(mapCtrl.map.heatmapLayers).forEach(function (layer) {
2937+
mapCtrl.deleteObject('heatmapLayers', mapCtrl.map.heatmapLayers[layer]);
2938+
});
2939+
}
2940+
29332941
delete mapControllers[mapId];
29342942
};
29352943

build/scripts/ng-map.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngmap",
3-
"version": "1.16.5",
3+
"version": "1.16.6",
44
"main": "build/scripts/ng-map.js",
55
"dependencies": {},
66
"engines": {

testapp/all-examples.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@
199199
"path": "testapp/layer-georss.html",
200200
"title": null
201201
},
202+
"layer-heatmap-http.html": {
203+
"path": "testapp/layer-heatmap-http.html",
204+
"title": null
205+
},
202206
"layer-heatmap.html": {
203207
"path": "testapp/layer-heatmap.html",
204208
"title": null

0 commit comments

Comments
 (0)