[Google Maps API v3] Re: Custom Controls for Zoom in and Zoom out

2011-12-03 Thread jsouth
Thanks for your help, Larry. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/iaATc-bOs0MJ. To post to this group, send email to go

[Google Maps API v3] Re: Custom Controls for Zoom in and Zoom out

2011-12-03 Thread geocode...@gmail.com
On Dec 3, 3:22 pm, jsouth wrote: > Hi, you're right - I thought the zoomIn function was a part of the API > library. You'll have to excuse me, I'm a very rookie javascripter. > > Here is a link to my map with the custom zoom controls on the right: > > http://therealtweet.com/1/zoomtest.html My br

[Google Maps API v3] Re: Custom Controls for Zoom in and Zoom out

2011-12-03 Thread jsouth
Hi, you're right - I thought the zoomIn function was a part of the API library. You'll have to excuse me, I'm a very rookie javascripter. Here is a link to my map with the custom zoom controls on the right: http://therealtweet.com/1/zoomtest.html Thanks, Jill -- You received this message beca

[Google Maps API v3] Re: Custom Controls for Zoom in and Zoom out

2011-12-02 Thread geocode...@gmail.com
On Dec 2, 5:08 pm, jsouth wrote: > Hi, > > For some reason the option to 'zoomIn' doesn't work with v3. For example I > have this code, where I want to have map.zoomIn() on the click event . > but it doesn't do anything? You haven't included a link to your map.zoomIn() function; there is no f

[Google Maps API v3] Re: Custom Controls flickering problem

2011-08-31 Thread en4ce
i didnt test my idea but you guys make it way to difficult... i would try to use onmouseover and onmouseout on the map div it self, and a function that set the controls on and of... that might work... On 31 Aug., 11:07, Martin™ wrote: > Hi. > > I think i'd look at adding a DOM event listener to t

[Google Maps API v3] Re: Custom Controls flickering problem

2011-08-31 Thread Martin™
Hi. I think i'd look at adding a DOM event listener to the DOM element that contains the map instead of using any API events. The Map getDiv() method will give your code a reference to the DOM element. http://code.google.com/apis/maps/documentation/javascript/reference.html#Map The DOM events '

Re: [Google Maps API v3] Re: Custom Controls flickering problem

2011-08-30 Thread Shreerang Patwardhan
Hello Pil, I am the author of that example code and that is my blog only. And well, you have got the problem right. Now how can we find a solution for the flickering problem? -- *Shreerang Patwardhan* ***Personal website:* Spatial Unlimited On Wed, Au

[Google Maps API v3] Re: Custom Controls flickering problem

2011-08-30 Thread Pil
Yes, that's why the author didn't provide an example but instead was using pictures. I'm always sceptical when there is no example available. This code is all too simple to work properly, because as soon as the cursor hovers over an object inside the map the mouseout listener fires and tries to ex

[Google Maps API v3] Re: Custom controls

2011-03-01 Thread Nick
To my limited knowledge the answer seems to be no. It's for a legend that the user can remove if it's cluttering up the map_canvas. I've just discovered this approach: — create the control div — nest another div inside of it, whose id we define — toggle the { display: } of that div between 'bloc

[Google Maps API v3] Re: Custom controls

2011-03-01 Thread Nick
Good question. Anyone? Styles are defined on creation. I will give your suggestion a go. On Mar 1, 3:10 pm, Martin™ wrote: > Can you assign an id to the custom control when you create it? > > Martin. > > On Mar 1, 3:00 pm, Nick wrote: > > > > > How do I ascertain a custom control's element id?

[Google Maps API v3] Re: Custom controls

2011-03-01 Thread Martin™
Can you assign an id to the custom control when you create it? Martin. On Mar 1, 3:00 pm, Nick wrote: > How do I ascertain a custom control's element id? Ie. > document.getElementById etc? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript AP

[Google Maps API v3] Re: Custom controls lost when switching from Streetview to RoadMap view

2010-12-21 Thread Marc
Hi Martin, I checked this with firebug and the div that was created is nowhere to be seen within the firebug source. I have tried a few work arounds but run into problems with each method. I have tried the following code to detect when the panorama view is closed: google.maps.event.addListener(p

[Google Maps API v3] Re: Custom controls lost when switching from Streetview to RoadMap view

2010-12-20 Thread Martin
I'd view the map with Firefox and after changing from StreetView back to RoadMap use Firebug to inspect the map. Find the custom control div if it's there and look at it's style - display, visibility and position etc. Martin. On Dec 20, 4:09 pm, Marc wrote: > I have created custom controls on

[Google Maps API v3] Re: Custom controls containing multiple selects

2010-11-16 Thread Chad Killingsworth
I'm getting a javascript error when the page loads in Firefox in main.js. That usually means a maps api method or constructor has been called with the wrong arguments (missing, string instead of a number, etc). Start by fixing that. Chad Killingsworth On Nov 16, 6:43 am, Esa wrote: > No idea. I

[Google Maps API v3] Re: Custom controls containing multiple selects

2010-11-16 Thread Esa
No idea. I would start debugging with some other events like 'click'. -- 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-maps-js-api...@googlegroups.com. To unsubscribe from this group, s

[Google Maps API v3] Re: Custom controls containing multiple selects

2010-11-16 Thread patrick
Mhm strange. Adding the DomListener to the selector doesn't work for me, neither on FF nor on Chrome on OS X. Maybe something else in my map application is interfering with it? The map is here: http://www.sandbag.org.uk/maps/emissionsmap_v3/ Unfortunately there is quite a lot of code there. If yo

[Google Maps API v3] Re: Custom controls containing multiple selects

2010-11-15 Thread Esa
I tried it quickly and 'change' events were triggered both on the selector and its container. Tried with FF, Chrome and Safari on OS X. Is it an IE-only problem? You should provide a link to the page. -- You received this message because you are subscribed to the Google Groups "Google Maps Java

[Google Maps API v3] Re: Custom controls containing multiple selects

2010-11-15 Thread patrick
If I attach the event listener to 'MapScopeSelect' like so: google.maps.event.addDomListener(MapScopeSelect, 'change', function() { ... and do map.controls[google.maps.ControlPosition.TOP_LEFT].push(MapScopeSelect); that works fine. However, that means it will add the select box without any bac

[Google Maps API v3] Re: Custom controls containing multiple selects

2010-11-15 Thread Esa
Is there a specific reason that you are listening to the 'change' event of the parent container google.maps.event.addDomListener(SearchControl, 'change', function() { ... Why not the selector itself google.maps.event.addDomListener(MapScopeSelect, 'change', function() { ... -- You received

[Google Maps API v3] Re: Custom Controls initialization

2010-08-23 Thread Chad Killingsworth
Good question. I personally use maptypeid_changed Chad Killingsworth On Aug 18, 9:25 am, mikegleasonjr wrote: > Hi, > > The procedure to add a custom Control is like: > >         map.controls[google.maps.ControlPosition.TOP_RIGHT].push(node); >         var ctrl = new MyControl(node, map); > > Bu