Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MarkerWithLabel stopped working correctly

Tags:

maps

api

All of a sudden yesterday 3/4/2014 my MarkerWithLabel (Google map API application) is only showing the last marker but the labels all show up. It had been working just fine. The Google Example at: https://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.0.1/examples/basic.html is not working at all and I based my code on this example that used to work just fine.

In link below I placed 2 markers with labels on a map. Only marker 2 displays while both labels display. Reversing the markers causes marker 2 to display but not marker 1. Both labels display.

What changed or what am I doing wrong?

You can see my problem first hand at http://qsomap.org/QSOmapProduction/labeltest.htm . This was working correctly 2 days ago.

like image 402
user3384413 Avatar asked Mar 05 '14 16:03

user3384413


1 Answers

It appears as if the latest google maps update broke something that markerwithlabel code relies on. The same thing happend to some of my maps. We'll have to wait until a fix is available.

The current solution is to set the google maps API version to 3.15 or lower: https://code.google.com/p/google-maps-utility-library-v3/issues/detail?id=296&sort=-id&colspec=ID%20Type%20Status%20Priority%20Fixed%20Owner%20Summary%20Stars

  • Using ...maps.google.com/maps/api/js?sensor=false&v=3.15 works
  • Using ...maps.google.com/maps/api/js?sensor=false&v=3.16 goes wrong
  • Using ...maps.google.com/maps/api/js?sensor=false goes wrong as well
like image 161
Mikrohard Avatar answered Nov 05 '22 18:11

Mikrohard