Dipshika
Dipshika

Reputation: 31

Change default Google Map Marker Size

I want to change the size of the default Google Map Marker size.

Every other post about this topic shows how to change the size of a custom marker.

I tried with 'size' and 'scaledSize':

var newMarker = new google.maps.Marker({
  position: marker.center,
  icon: { size: new google.maps.Size(60, 60) }
})

but nothing works.

Upvotes: 0

Views: 1671

Answers (1)

Dipshika
Dipshika

Reputation: 31

As geocodezip commented, You can't modify the default marker size. You need to make a custom marker that uses the same icon and change the size of that.

Hope this helped others who were looking for an answer. I don't why the question got down voted; I have not found any official documentation mentioning this anywhere till date.

Upvotes: 1

Related Questions