Skip to content

Commit

Permalink
Add option override the Marker constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jascha Dachtera committed Jul 24, 2013
1 parent f0b726c commit 06cb6c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/angulargmMapController.js
Expand Up @@ -243,7 +243,7 @@
throw 'markerOptions did not contain a position';
}

var marker = new google.maps.Marker(opts);
var marker = new angulargmDefaults.markerConstructor(opts);
var position = marker.getPosition();
if (this.hasMarker(scopeId, position.lat(), position.lng())) {
return false;
Expand Down
1 change: 1 addition & 0 deletions src/module.js
Expand Up @@ -46,6 +46,7 @@
* @module angulargmDefaults
*/
value('angulargmDefaults', {
'markerConstructor': google.maps.Marker,
'mapOptions': {
zoom : 8,
center : new google.maps.LatLng(46, -120),
Expand Down

0 comments on commit 06cb6c2

Please sign in to comment.