Tuesday, June 1, 2010

paint routh trip

I have a problem
when a add the code:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=false
"></script>

my application don't calcute the routs.
in the code:
directionsService.route(request, function(response, status) {
alert("AKI");
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
}
});
don't appears the alert.

but if I add the code:
<script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAA6cQGQ-VIfKZAY5CYKtN7-
BQ0N68nMSLYIFwKqgei_Prq0QYfWxSvrZ3jWLNzmKG6-62_dAzE7M2bow
" type="text/
javascript"></script>

then the message of alert appears, but don't the map

Someone could tell me what's wrong?

--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate