I have a web application based on RichFaces 3.3.3 that uses Google Maps (maps-api v3), that was working fine until recently.
Lately is failing to draw the map's user controls. Map is drawn fine but the controls don't appear, map type or zoom control, for example.
Investigating a little, it seems a compatibility problem with prototype.js.
If you simply add this line to the example in developers.google.com:
js console in chrome browser logs this:
Uncaught TypeError: undefined is not a function prototype-184.108.40.206.js:641
And the user controls dissapear...
Somebody knows how to solve this problem??
Now I'm going to try to change prototype.js in richfaces for a more modern version... I'll update when I know more.
Thanks in advance!
--- UPDATE ---
- Using production version of Google Maps solves the problem. Now is necessary explicitly put v=3 in src in script tag. Thanks Dr.Molle.
- Updating prototypejs to (1.7.2). Works fine with experimental too. Thanks @eepete.
--- UPDATE 2 ---
- Using v=3 isn't working anymore with richfaces 3.3.3 (prototype-220.127.116.11.js) if you need to use this old version of prototype, now you need to explicitly use v=3.17 in google maps.
In other words, use this in your page for backguards compatibility with prototype-18.104.22.168.js: