Skip to content

Commit 06cb6c2

Browse files
author
Jascha Dachtera
committed
Add option override the Marker constructor.
1 parent f0b726c commit 06cb6c2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/controllers/angulargmMapController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
throw 'markerOptions did not contain a position';
244244
}
245245

246-
var marker = new google.maps.Marker(opts);
246+
var marker = new angulargmDefaults.markerConstructor(opts);
247247
var position = marker.getPosition();
248248
if (this.hasMarker(scopeId, position.lat(), position.lng())) {
249249
return false;

src/module.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* @module angulargmDefaults
4747
*/
4848
value('angulargmDefaults', {
49+
'markerConstructor': google.maps.Marker,
4950
'mapOptions': {
5051
zoom : 8,
5152
center : new google.maps.LatLng(46, -120),

0 commit comments

Comments
 (0)