I have a RichFaces 3.3.3 based web application that uses Google Maps (maps-api v3), which worked until recently.
Recently, you cannot draw custom controls. The map is drawn fine, but the controls are not displayed, such as map type or zoom control.
A bit of investigation seems to be a compatibility issue with prototype.js.
If you just add this line to the example in developers.google.com :
<script src="http://prototypejs.org/assets/2008/9/29/prototype-1.6.0.3.js"></script>
js console in Chrome browsers:
Uncaught TypeError: undefined is not a function prototype-1.6.0.3.js:641
And the user controls dissapear ...
Does anyone know how to solve this problem?
Now I will try to change prototype.js in richfaces for a more modern version ... I will update when I learn more.
!
--- UPDATE ---
- Google Maps . v = 3 src script. Dr.Molle.
- prototypejs (1.7.2). . @eepete.
--- 2 ---
- v = 3 richfaces 3.3.3 (prototype-1.6.0.3.js), , v = 3.17 google.
, backguards prototype-1.6.0.3.js:
<script src="https://maps.googleapis.com/maps/api/js?v=3.17"></script>