Google Maps API Tutorial© 2008, 2009 Mike Williams |
| Translate this page: |
Using EInsert.groundOverlayEInsert.groundOverlay() is a static method which creates an EInsert() object using parameters similar to those of GGroundOverlay(). I.e. it uses a GLatLngBounds to specify the corners of the region, instead of using a centre point and size.Here's an example In order to use EInsert.groundoverlay() you need to:
Create some EInsert objects using EInsert.groundoverlay()E.g. var insert = EInsert.groundOverlay("foo.png",new GLatLngBounds(sw,ne));
The parameters are:
The number of zoom levels in a GProjection is not exposed, so if you are using a custom GProjection with fewer zoom levels, you need to tell me the highest zoom level that I can use for the calculations. Note Don't write "new EInsert.groundOverlay(...)". EInsert.groundOverlay() is a static method, not a constructor. The EInsert() created by EInsert.groundOverlay() supports all the usual EInsert() methods. See Using the EInsert extension |