Yeah !! very good !! Now, I know how make a global variable ! :)
All my script work fine with your help ! many thx !! :)
In your code for zoom, I want to add an another script.
just for change the mapTypeID when i zoom in and come back in zoom
out,
<a href='javascript:map.setCenter(new
google.maps.LatLng("+point.toUrlValue(6)+"));
map.setmapTypeId(SATELLITE); map.setZoom("+ zoom +");'>Zoom !</a>";
but they don't work do you have an idea ?
On Aug 3, 2:31 pm, "[email protected]" <[email protected]>
wrote:
> On Aug 3, 1:40 am, Greg45 <[email protected]> wrote:
>
> > Don't know wHere put my var map, for make it Global .
>
> I gave you an example. You could also look at this description from
> Mike Williams' (v2) tutorial:
> Javascript Concepts - Part 1 Scopehttp://econym.org.uk/gmap/scope.htm
>
> You need to remove the "var" keyword from the statement that
> initializes it in your function (leaving that statement where it is),
> and then declare the variable in the global scope (outside of any
> function).
>
> -- Larry
>
>
>
> > ps : sorry
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.