styling controls

213 views
Skip to first unread message

Amit Kumar

unread,
Feb 3, 2011, 2:09:24 PM2/3/11
to google-map...@googlegroups.com
Hi, I was wondering if i can use jquery to style the map controls, instead of disabling the default controls and adding my own... DRY principal :P

Paulo Fernandes

unread,
Feb 3, 2011, 2:17:40 PM2/3/11
to google-map...@googlegroups.com
You can do that using customControl

On Thu, Feb 3, 2011 at 5:09 PM, Amit Kumar <i.strik...@gmail.com> wrote:
Hi, I was wondering if i can use jquery to style the map controls, instead of disabling the default controls and adding my own... DRY principal :P

--
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 google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Amit Kumar

unread,
Feb 3, 2011, 2:30:32 PM2/3/11
to google-map...@googlegroups.com
the approach on that page is to make each control myself... which isnt very DRY... i would like to just style the existing default controls

Chris Broadfoot

unread,
Feb 6, 2011, 7:37:06 PM2/6/11
to google-map...@googlegroups.com
On Fri, Feb 4, 2011 at 6:30 AM, Amit Kumar <i.strik...@gmail.com> wrote:
the approach on that page is to make each control myself... which isnt very DRY... i would like to just style the existing default controls

Unfortunately these controls are subject to change (in behaviour and appearance), so providing an API to style them isn't really feasible.

What exactly do you want to style?

Chris

Amit Kumar

unread,
Feb 8, 2011, 12:53:44 AM2/8/11
to google-map...@googlegroups.com
i want to style the map type selection controls...
Regards,
Amit Kumar
http://www.itsamit.com
fin...@itsamit.com



--

Chris Broadfoot

unread,
Feb 8, 2011, 1:03:27 AM2/8/11
to google-map...@googlegroups.com
On Tue, Feb 8, 2011 at 4:53 PM, Amit Kumar <i.strik...@gmail.com> wrote:
i want to style the map type selection controls...

Well, as you can see, today we changed the default styles. As I said above, it's not feasible to provide this. You should create your own custom controls.

Reply all
Reply to author
Forward
0 new messages