On Nov 2, 11:20 am, artifex <[email protected]> wrote:
>
> Für das Suchen der Adresse folgender Code:

It would be better to have given a link.

You only want one map, and it's in a div id="map_canvas".

So it should be initialised only once, and only for that div:
map = new GMap2(document.getElementById("map_canvas"));
which creates a map called "map" in that div.

You don't need
map = new GMap2(document.getElementById("map"));
because that re-initialises the map in a div which doesn't exist.

Make sure you only add controls once, and only centre it once -- at
the right location!

When you are combining examples, you need to know what the examples
are doing. Take a pencil and step through the code in the order which
the browser does.

If you have already made an attempt -- and tried what I have suggested
-- then post a link so everyone can see what you have got and can
help. Code listings are not very helpful.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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.

Reply via email to