Ok I've found the solution:
bounds.extend(point);
and
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
after:
var map = new GMap2(document.getElementById("map"));
thanks!!!
:-)
On 21 Mag, 18:34, Clarus <[email protected]> wrote:
> Ok I've understand... I don't need geocode and I can use lat and long
> stored in my data base.
>
> I've rewrite the php program but don't run:
>
> http://www.pacchettihotel.it/map555.php
>
> Any idea?
>
> thanks
>
> On 21 Mag, 17:43, Andrew Leach <[email protected]> wrote:
>
> > On May 21, 4:37 pm, Clarus <[email protected]> wrote:
>
> > > Andrew your code run on my site but I can hava more than three
> > > addresses.
>
> > > I don't understand "geocoding is asynchronous"...
>
> > It means that the geocoding happens in the background. When the
> > geocoding returns a result, the callback function runs to process the
> > result. In the meantime, code exection has continued to the next
> > statement. Did you look at the link Rossko provided?
>
> > > This is the flow chart about my php program:
>
> > > 1) I read a city ($city)
>
> > > 2) With function php I found cities near $city in data base
>
> > Er... so you have locations for each city already? In that case you
> > don't need to geocode them at all. Just use the coordinates you
> > already know.
>
> > > 3) View the cities in Googe Maps (the number of cities can be 1, 10 or
> > > 100 :-) )
>
> > > I don't need a view in real time of google maps
>
> > I don't understand how you don't need a view in a map if you want to
> > view the cities in a map.
>
> > Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---