|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eightmotions.map.GenericOverlay
public class GenericOverlay
This is a "generif overlay", that could be easily used with GoogleEarth overlay....
The url can be modified and can contain some special field, that are modified dynamically by the application
For instance:
http://myServer.com/maps/bbox=!minLat!minLon!maxLat!maxLon!
These specific fields are:
!minLat!
!minLon
!maxLat!
!maxLon!
!x!
!y!
!z!
!zoom!
!quad!
MapCustomOverlay| Field Summary | |
|---|---|
boolean |
isTransparent
|
char[] |
m_quad
|
java.lang.String |
m_url
|
java.lang.String |
name
|
| Constructor Summary | |
|---|---|
GenericOverlay()
Do not forget to initialize m_url, and name |
|
GenericOverlay(java.lang.String inUrl)
|
|
GenericOverlay(java.lang.String inName,
java.lang.String inUrl)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Return the name of this overlay. |
java.lang.String |
getTileURL(int x,
int y,
int z,
int sizeSq)
Must be implemented to return the URL of a tile |
boolean |
isTransparent()
Return true if the layer is transparent, or haves some alpha capacities. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String m_url
public char[] m_quad
public boolean isTransparent
public java.lang.String name
| Constructor Detail |
|---|
public GenericOverlay(java.lang.String inUrl)
public GenericOverlay()
public GenericOverlay(java.lang.String inName,
java.lang.String inUrl)
| Method Detail |
|---|
public java.lang.String getTileURL(int x,
int y,
int z,
int sizeSq)
MapOverlay
getTileURL in interface MapOverlayx - position of the tile in pixel space...y - y position in pixel space...z - zoom factorsizeSq - size of the tile...usually only 256 and 128 are supported
public boolean isTransparent()
MapOverlay
isTransparent in interface MapOverlaypublic java.lang.String getName()
MapOverlay
getName in interface MapOverlay
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||