On this line: var koordinaten = new koordinaten(koordinatenDiv, map); Your variable is the same name as your constructor and it's being overwritten. Try: var koordinatenControl = new koordinaten(koordinatenDiv, map);
Chad Killingsworth On Jun 21, 6:17 am, Harald Effenberg <[email protected]> wrote: > Hi ! > > I want to changehttp://www.effenberg.de/maps.htmfrom V2 to V3. > > But I am not even able to position a second custom control. > Here you can see the current project > status:http://www.effenberg.de/maps-v3-1.htm > > The first custom control is on the right side at the top and doing > it's job. > First, I want to add a second custom control at the center of the > bottom which just displays the Words > "Breite und Laenge" - and I thought this should be easy. > > But the second control is not displayed. > When I change line 101 from > > var koordinaten = new koordinaten(koordinatenDiv, map); > > to > > var koordinaten = new HomeControl(koordinatenDiv, map); > > I get a copy of the first control at the desired > placehttp://www.effenberg.de/maps-v3-2.htm > > but > > var koordinaten = new koordinaten(koordinatenDiv, map); > > does not work at all. > > Where am I going wrong? > > TIA and best regards, > Harry -- 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.
