I have developed a control button with some checkboxes to put icons on
stage.
But in case my viewport size becomes too small I want to reposition
the button below the existing google controls (instead of positioning
them at the left).

Thought this would work :

                $(window)
                               .bind("resize", function(e){

var viewport = $(document).width();
                                                               if
(viewport < 1200) {
 
POIControl.prototype.getDefaultPosition = function() {
 
return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(258, 33));
                                                                               }
                                                               }

                               })

But the control is not moving at all….

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