Thanks for your help Gregory! But, even if I need to show a route into a static map, could I do this without using javascript? Because that's what I need: a map with a route between two points.
Thanks in advance! LuizThanks for your help Gregory! But, even if I need to show a route into a static map, could I do this without using javascript? Because that's what I need: a map with a route between two points. Thanks in advance! Luiz 2009/4/13 Gregory Short <[email protected]> > On Apr 12, 2009, at 11:45 PM, Luiz Antonio Falaguasta Barbosa wrote: > > > > 2009/4/11 Rossko <[email protected]> > >> >> > Understood... but I'm only trying to find a way to show static maps in >> > browser of celullar phones. So, in this way, does anybody know how >> > could I show static maps in microbrowsers? >> >> You put the static maps URL as the 'src' parameter in an <img> tag. > > > Yes, like this: > > function addImg(url, id) { > var img = document.createElement("img"); > img.src = url; > document.getElementById(id).innerHTML = ""; > document.getElementById(id).appendChild(img); > } > > > Why not just: > <img src="http://url_for_your_static_map" /> > For help determining what "url_for_your_static_map" should be, see the > static maps api documentation, of course. It's basically just a guide as to > what parameters should be posted to the static maps server. Very > straightforward stuff, no JS involved. No need to over-complicate! > http://code.google.com/apis/maps/documentation/staticmaps/ > > > >> You'd normally construct that server-side using php or asp or >> whatever, as the microbrowser probably can't run the maps API >> javascript client side. > > > That's what thought, but how? I know that is off-topic to discuss php or > asp ways to do it, but does Google Maps API have another way to obtain > static maps? What could I take as reference to the static map to do what you > recommended? > > Thanks in advance! > > Luiz > > >> >> >> cheers, Ross K >> >> >> > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
