Thursday, January 04, 2007

Large Zoom Control Without Pan Buttons

A duplicate of my post on api forum:

You can move the large control upwards:
map.addControl(new GLargeMapControl(),
new GControlPosition(G_ANCHOR_TOP_LEFT,
new GSize(5,-60)));

Having a style definition 'overflow:hidden' for the map div hides the
overflowing pan buttons.

A demo.

There is also a clever commenting script called 'JS-Kit' on the demo page. That is loaded by GScript() just for testing. Try commenting or just sending regards.

No comments: