I have checked all corners of the internet for this error "Uncaught ReferenceError: BitmapDescriptorFactory is not defined". The closest site I could find is someone with the exact same issue with no answers. See here.
There are plenty of examples creating the marker with the BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE) example but I am not creating my marker the same way.
Here is what my code looks like that produces the above error.
var marker = new google.maps.Marker({
position: new google.maps.LatLng(45.09342894,-36.9823909),
map: map,
visible: true,
animation: google.maps.Animation.DROP,
//icon: 'http://maps.google.com/mapfiles/ms/icons/red-dot.png',
icon: BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE),
});
I know i can use the commented out line but I want the default google icon as the png images are not as good quality.
Could anyone guide me how to accomplish this in the method I am using or how to translate this method to a working one?
Thanks!