Tuesday, November 2, 2010

[Google Maps API v2] Re: Geocoding und vordefinierte Marker gleichzeitig anzeigen lassen

On Nov 2, 11:20 am, artifex <m...@alex-emig.de> 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 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