API version 1 is no longer supported.
You need to change
G_MAP_TYPE to G_NORMAL_MAP

Take a look at the upgrade guide at
http://code.google.com/apis/maps/documentation/upgrade.html

If it is necessary further troubleshooting please post a link to the
map web page rather than code.

On Nov 19, 5:21 pm, juanguinho <[EMAIL PROTECTED]> wrote:
> Hi everybody,
> First of all , sorry my english
> Until now, i have been using google maps in several webs without
> problems.
> Recently I have discovered in these webs the gmarkers not works.
> (Before these days
> i'm sure they was working correctly)
> They are missing. I can understand it.
>
> An example of the code that doesn't works now:
>
>    <script type="text/javascript">
>     //<![CDATA[
>     var map;
>     function load() {
>       if (GBrowserIsCompatible()) {
>         var infoTabs = [
>           new GInfoWindowTab("Tab #1", '<table><tr><td>hola</td></
> tr></
> table>')];
>         map = new GMap2(document.getElementById("map"));
>         var pos = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new
> GSize
> (0,0));
>                   var pos2= new GControlPosition(G_ANCHOR_TOP_LEFT,
> new GSize
> (0,70));
>         map.addControl(new GSmallMapControl(),pos2);
>         map.addControl(new GMapTypeControl(),pos);
>
>        map.setCenter(new GLatLng(42.878228,-8.514748), 12);
>
>        map.setMapType(G_MAP_TYPE);
>         var marker = new GMarker(new GLatLng(42.852597,-8.584338));
>         //var marker = new GMarker(new GLatLng(42.878228,-8.514748));
>         GEvent.addListener(marker,
>           "click",
>           function()
>           { marker.openInfoWindowTabsHtml(infoTabs);  });
>         map.addOverlay(marker);
>         marker.openInfoWindowTabsHtml(infoTabs);
>
>       }
>     }
>     //]]>
>
>     </script>
>
> Any idea?
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to