Google Maps v3 marker.set_map deprecated

After the 8.8 earthquake outside of Chile this past weekend, I posted my Quake Tracker to twitter/facebook so people could easily visualize where the quake occurred. Granted, there is a lot of work that I still want to do with the mashup, but it at least works, or so I thought.

I noticed that new selections weren’t actually loading earthquakes, and I decided to wait until today to see what was going on. After stepping through the code a few times, I found that the function

marker.set_map(

is now deprecated. It has been deprecated and replaced by

marker.setMap(

It’s a little annoying that the API has deprecated a function in the same version that I was using for the quake tracker.

Related Articles