1

I'm using the Google Maps generator to create a few maps for a client. The maps embeded on the site are a bit small (255x176), so map real state is crucial. I've already removed the balloon, but can't find a way to remove the "Earth" view button from it (all newly generated maps come with it now, 4 views in total).

The annoying part is that the "Earth" view requires a Google Earth plugin to be used anyway, something the client could live without - me too.

Any advices there? Feedback will be greatly appreciated!

Cheers, Wallace

4

2 回答 2

0

如果使用默认 UI,您将仅获得 G_DEFAULT_MAP_TYPES 中的地图类型,其中不包括地球地图类型 (G_SATELLITE_3D_MAP)。

这意味着您的生成器正在显式添加此地图类型。因此,您应该能够在从生成器获得的 javascript 中简单地查找 G_SATELLITE_3D_MAP,并删除对它的引用。

如果您仍然遇到问题,您能否提供您正在使用的地图生成器的链接?

于 2010-11-24T06:40:33.263 回答
0

您可以使用 MAPS API 自定义地图控件。

访问http://code.google.com/apis/maps/documentation/javascript/controls.html#DefaultUI

查找 MapTypeControlOptions 并传递您要显示的适当地图类型。

请参阅http://code.google.com/apis/maps/documentation/javascript/reference.html#MapTypeControlOptions

http://code.google.com/apis/maps/documentation/javascript/reference.html#MapTypeId

于 2010-11-04T08:09:26.663 回答