On Jun 18, 5:16 am, Nathan Raley <[email protected]> wrote:
>
> Code to initialize the map and create the button is located 
> here:http://www.suntransformer.com/peter/GoogleAPI3/test/main.js
>
looks like you've gotta add the div to the controls, not the button

map.controls[google.maps.ControlPosition.TOP_RIGHT].push(trafficControlDiv);

the doco says:
http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls

Create a <div> element to hold the control and add this element to the
Map's controls property.

...

-- 
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.

Reply via email to