Hi all.
I have a problem with one map.
I found a lot of reference in internet about this issue, but I don't
find any solution.
I have a v2 google maps map with more than 30 marks.
When I make zoom in map, the points are moved a little bit. The
markers are only showed in the correct position when map are in the
more closer zoom.
I set the center map on level 14.
Below you can see an example code, sorry but I can't write the example
page:
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(XX,XXXXXX, -XX,XXXXX), 14);
var point ;
var icon = new GIcon();
icon.image = "./icono_mark_2.png";
icon.iconSize = new GSize(32, 32);
icon.iconAnchor = new GPoint(32, 32);
icon.infoWindowAnchor = new GPoint(10, 8);
var marker = new Array();
point = new GLatLng(XX,XXXXXX,-XX,XXXXXX);
//Process all my markers
marker[$i]= new GMarker(point, icon);
GEvent.addListener(marker[$i],'click',function(){
$.ajax({
async:true,
type: "POST",
dataType: "html",
data:"id="+$id+"&addressnew=<?echo
base64_encode ($direccion)?
>"+"&s_id_idioma="+"$idioma",
contentType:
"application/x-www-form-urlencoded",
url: "URL.php",
beforeSend:function(){
marker[$indice].openInfoWindowHtml("cargando");
},success: function(datos){
marker[$indice].openInfoWindowHtml(datos);
}
});
});
map.addOverlay(marker[$indice]);
$indice=$indice+1;
}
};
//end process all my markers
var api='$key';
$.getScript('http://maps.google.com/maps?hl=
$idioma&oe=UTF-8&ie=UTF-8&file=api&v=2&key='+api
+'&async=2&callback=cargarMapa');
Can you help me please?
--
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.