Why do you need these methods, if not to overlay something on the map?
We do not arbitrarily make things difficult for developers. This design allows us to delay-load the code for all projections, which speeds up every site that does not need these methods.
Hmm, yes, but it could be that one of these methods is needed for
On May 24, 3:26 am, Ben Appleton <apple...@google.com> wrote:
> Why do you need these methods, if not to overlay something on the map?
simple markers, polylines etc. or something like this
http://gmaps-samples-v3.googlecode.com/svn/trunk/latlng-to-coord-control/latlng-to-coord-control.html
And regarding the speed: I think you ignore the clients script code
(also a great speed factor), as I mentioned here
http://groups.google.com/group/google-maps-api/msg/000026a40d477776
On May 26, 3:29 am, Ben Appleton <apple...@google.com> wrote:
>
> Why don't you just listen to Map event "mousemove"? That returns the
> LatLng, which seems simpler than adding a dummy OverlayView only to access
> the projection.
I just want a static screen overlay (in v2 GScreenOverlay) that
doesn't move with the map or the mouse. To position the overlay
exactly within the map container a dummy overlay is needed. Seems you
haven't taken this into account.
Besides: Positioning of such a static overlay is very buggy - if not
unusable. I'll post a bug report and a demonstrator page later.
> We take performance very seriously, not just the time to load a map.
Concerning performance: I've mentioned stuttering dragging of the map
earlier
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/1f1b191ad0282b87#
I just want a static screen overlay (in v2 GScreenOverlay) that
On May 26, 3:29 am, Ben Appleton <apple...@google.com> wrote:
>
> Why don't you just listen to Map event "mousemove"? That returns the
> LatLng, which seems simpler than adding a dummy OverlayView only to access
> the projection.
doesn't move with the map or the mouse. To position the overlay
exactly within the map container a dummy overlay is needed. Seems you
haven't taken this into account.
Besides: Positioning of such a static overlay is very buggy - if not
unusable. I'll post a bug report and a demonstrator page later.
Concerning performance: I've mentioned stuttering dragging of the map
> We take performance very seriously, not just the time to load a map.
earlier
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/1f1b191ad0282b87#
On May 26, 9:36 am, Ben Appleton <apple...@google.com> wrote:
> Start with this
> example<http://www.google.com/url?sa=D&q=http://code.google.com/apis/maps/documentation/javascript/examples/control-custom.html&usg=AFQjCNGfLl2g3bwispGh7F_BFnDCoBPFWg>
Thanks I've seen that. I want that the overlay should be positioned at
the center of the map or - for example - just underneath the map type
buttons.
This seems not possible with the restrichted possibilities of
ControlPosition.
Unfortunately it's not possible to turn off the "intelligent flowing".
In v2 GSize class was included in GControlPosition. That made it
possible to position everything absolute (independant of pre-defined
anchors of GControlPosition).
As it seems now, absolute positioning in v3 is only possible without
interference of a drag or zoom event when the constant BOTTOM_RIGHT is
used.
If that behaviour was not intended it can be called a bug.
If it was intended it's a unnecessary restriction.
To see what I mean I posted a report with a link to a demonstrator
If you need to absolutely position an element, I suggest .appendChild() the element inside the map div and set css position: absolute.
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScri...
On May 27, 12:31 am, Ben Appleton <apple...@google.com> wrote:
> If you need to absolutely position an element, I suggest .appendChild() the
> element inside the map div and set css position: absolute.
Yes, thanks. This would be possible in many cases but not generally.
For example not in this case:
If you look at the tiny icon that snaps to the polyline after creating
a route
http://www.marsrutai.info/directions
I would call that tiny icon an OverlayView, no?
>
> --
http://www.wolfpil.de/map-in-a-box.html
The problem would be the icon at the bottom right.
Either I quit the whole maps stuff or a crude hack will be the result.
The possibilities of positioning a control in v3 are completely
inflexible compared to v2.
It's simply not a control. v3 controls do not support the display of
non-controls.
> A similar problem seems to appear here
>
> http://www.wolfpil.de/map-in-a-box.html
>
> The problem would be the icon at the bottom right.
> Either I quit the whole maps stuff or a crude hack will be the result.
Line 170 looks like a "crude hack" to me:
/* Move the 'Terms of Use' 25px to the left
* to make sure that it's fully readable
*/
var terms = container.childNodes[2];
terms.style.marginRight = "25px";
> The possibilities of positioning a control in v3 are completely
> inflexible compared to v2.
v2 only allowed to insert absolutely positioned divs. You can just do
that in the DOM if you like. v3 adds the possibility of flow control,
so your controls play nice with each other and with default controls.