Template Context Objects (V1.1):
These are the functions provided by the objects in the Velocity template context. This is just the signature reference. You should look at the included templates to see how the various objects are used.
Map
String |
getName() |
Location[] |
getEveryLocation() |
Location
String |
getName() |
Image[] |
getEveryImage() |
int |
getLatitude() |
int |
getLongitude() |
float |
getLatitudeFloat() |
float |
getLongitudeFloat() |
Image
ImageBuilder
int |
getOriginalImageWidth(Image image) |
int |
getOriginalImageHeight(Image image) |
int |
calculatePixelWidth(int pointLongitude, int pixelWidth, int pixelHeight) |
int |
calculatePixelHeight(int pointLatitude, int pixelWidth, int pixelHeight) |
int |
calculateFullMapWidth(int subRegionLongitude, int subRegionEast, int subMapWidth) |
int |
calculateFullMapHeight(int subRegionLatitude, int subRegionNorth, int subMapHeight) |
int |
getHeightOfFixedWidthImage(Image image, int width) |
String |
getImageDate(Image image) |
String |
getFixedWidthImageRelativeURL(Image image, int width) |
String |
getImageRelativeURL(Image image) |
String |
getImageRelativeURL(Image image, int width, int height) |
String |
getMapRelativeURL(int width, int height) |
String |
getSubMapRelativeURL(int xOffset, int yOffset, int width, int height, int fullWidth, int fullHeight) |
String |
attributeEncode(String attributeValue) |
String |
javascriptEncode(String stringConstantValue) |
float |
getLatitudeFloat(int latitude) |
float |
getLongitudeFloat(int longitude) |
locationsRegion and entireRegion
Point |
getPoint() |
int |
getEast() |
int |
getNorth() |
Point
int |
getLatitude() |
int |
getLongitude() |