|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.overlay.Overlay
com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay
com.google.gwt.maps.client.overlay.GeoXmlOverlay
public final class GeoXmlOverlay
A map overlay containing geographic content from a publicly accessible GeoRSS XML or KML file.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
Overlay.ConcreteOverlay |
Field Summary |
---|
Fields inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
jsoPeer |
Method Summary | |
---|---|
LatLngBounds |
getDefaultBounds()
Returns the bounding box of the default viewport. |
LatLng |
getDefaultCenter()
Returns the center of the default viewport as a lat/lng. |
LatLng |
getDefaultSpan()
Returns the span of the default viewport as a lat/lng. |
TileLayerOverlay |
getTileLayerOverlay()
Deprecated. |
void |
gotoDefaultViewport(MapWidget mapWidget)
Sets the map's viewport to the default viewport of the XML file. |
boolean |
isHidden()
Returns true if the GeoXmlOverlay object is currently hidden,
as changed by the setVisible(boolean) . |
static void |
load(java.lang.String url,
GeoXmlLoadCallback cb)
Factory method to create a new overlay from a GeoRSS XML or KML file. |
void |
setVisible(boolean visible)
Shows/Hides the child overlays created by the GeoXmlOverlay object if the overlay is both currently visible and the overlay's supportsHide() method returns true . |
boolean |
supportsHide()
Always returns true . |
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay |
---|
copy, initialize, redraw, remove |
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
createPeer, getZIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void load(java.lang.String url, GeoXmlLoadCallback cb)
url
- the URL of the XML or KML file to loadcb
- the callback to invoke when loading completes.public LatLngBounds getDefaultBounds()
public LatLng getDefaultCenter()
public LatLng getDefaultSpan()
@Deprecated public TileLayerOverlay getTileLayerOverlay()
null
if not
needed, or if the GeoXmlOverlay file has not yet finished loading.
public void gotoDefaultViewport(MapWidget mapWidget)
mapWidget
- Map to adjust viewport ofpublic boolean isHidden()
true
if the GeoXmlOverlay object is currently hidden,
as changed by the setVisible(boolean)
. Otherwise
returns false
.
true
if the overlay is currently hidden.public void setVisible(boolean visible)
true
. Note that this method will trigger the
respective visibility changed event for each child overlay that fires that
event. If no overlays are currently visible that return supportsHide() as
true
, this method has no effect.
public boolean supportsHide()
true
.
true
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |