On Jun 15, 1:11 pm, vetswest <george.reyno...@gmail.com> wrote:
>
> The markers still stay in the same place when you zoom out on the
> original on Bill's page.

Yes. They are offset by a fixed distance **on the screen**, defined by
opt_dx and opt_dy (see below).

> I do not know how to make a call to
> mapOffset.addOverlay(new OffsetableMarker());
> with proper co-ordinates - can anybody come up with an example?

Look in the documentation:

// Create the offsetable marker
//
// GLatLng - mkrPoint the actual position to be marked
// GMarkerOptions - mkrOpts the options for the marker
// opt_color - color string for the offset line e.g. "#FF0000" or ""
to use the map's default text color
// opt_width - width for the offset line in pixels
// opt_opacity - opacity for the offset line, 0.0 (transparent) to 1.0
(opaque)
// opt_dx - x pixel offset for symbol, the same at all zooms
// opt_yx - y pixel offset for symbol, the same at all zooms
//
// Bill Chadwick 2006
//
// Events dragstart, drag, dragend and dblclick used internally
//
function OffsetableMarker(mkrPoint, mkrOpts, opt_color, opt_width,
opt_opacity, opt_dx, opt_dy)

So the arguments to "new OffsetableMarker(...)" are a GLatLng of the
position, some {options} as specified for GMarkerOptions -- like the
icon -- and some other arguments which define the properties of the
indicator line. The only mandatory argument is the position.

var om = new OffsetableMarker(new GLatLng(51,0));

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to google-maps-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to