Uncaught ReferenceError: GeolocationMarker is not defined

I would like to set a marker in maps with a GeolocationMarker, but I only get the following error

Uncaught ReferenceError: GeolocationMarker is not defined
I use it like:

var geoMarker = new GeolocationMarker(mapAllDealer);

google.maps.event.addListenerOnce(geoMarker, ‘position_changed’, function() {
mapAllDealer.setCenter(this.getPosition());
mapAllDealer.fitBounds(this.getBounds());
});

google.maps.event.addListener(geoMarker, ‘geolocation_error’, function(e) {
alert('There was an error obtaining your position. Message: ’ + e.message);
});