@Controller @RequestMapping(value="VIEW") public class MapViewController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
static String |
MAP_OPTION_MAPTYPE_CONTROL |
static String |
MAP_OPTIONS_OVERVIEW_CONTROL |
static String |
MAP_OPTIONS_PAN_CONTROL |
static String |
MAP_OPTIONS_ROTATE_CONTROL |
static String |
MAP_OPTIONS_SCALE_CONTROL |
static String |
MAP_OPTIONS_STREET_VIEW |
static String |
MAP_OPTIONS_ZOOM_CONTROL |
static String |
PREFERENCE_API_KEY |
static String |
PREFERENCE_MAP_DATA_URL |
static String |
PREFERENCE_PORTAL_JS_NAMESPACE |
static String |
PREFERENCE_STARTING_LATITUDE |
static String |
PREFERENCE_STARTING_LONGITUDE |
static String |
PREFERENCE_STARTING_ZOOM |
static String |
PREFERENCE_USE_PORTAL_JS_LIBS |
| Constructor and Description |
|---|
MapViewController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.portlet.ModelAndView |
getMapData(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response) |
org.springframework.web.portlet.ModelAndView |
getView(javax.portlet.RenderRequest request,
String location) |
void |
setDefaultLatitude(String defaultLatitude) |
void |
setDefaultLongitude(String defaultLongitude) |
void |
setDefaultZoom(String defaultZoom) |
void |
setMapDao(IMapDao dao) |
void |
setMapDataUrl(String mapDataUrl) |
void |
setPortalProtocol(String portalProtocol) |
public static final String PREFERENCE_API_KEY
public static final String PREFERENCE_USE_PORTAL_JS_LIBS
public static final String PREFERENCE_PORTAL_JS_NAMESPACE
public static final String PREFERENCE_STARTING_LATITUDE
public static final String PREFERENCE_STARTING_LONGITUDE
public static final String PREFERENCE_STARTING_ZOOM
public static final String PREFERENCE_MAP_DATA_URL
public static final String MAP_OPTION_MAPTYPE_CONTROL
public static final String MAP_OPTIONS_PAN_CONTROL
public static final String MAP_OPTIONS_ZOOM_CONTROL
public static final String MAP_OPTIONS_STREET_VIEW
public static final String MAP_OPTIONS_SCALE_CONTROL
public static final String MAP_OPTIONS_ROTATE_CONTROL
public static final String MAP_OPTIONS_OVERVIEW_CONTROL
protected final org.apache.commons.logging.Log log
@Autowired(required=true) public void setMapDao(IMapDao dao)
@Value(value="${map.defaultdao.url:http://localhost:8080/MapPortlet/data/map.json}")
public void setMapDataUrl(String mapDataUrl)
@Value(value="${portal.protocol:http}")
public void setPortalProtocol(String portalProtocol)
@Value(value="${map.default.latitude:41.300937}")
public void setDefaultLatitude(String defaultLatitude)
@Value(value="${map.default.longitude:-72.932103}")
public void setDefaultLongitude(String defaultLongitude)
@Value(value="${map.default.zoom:17}")
public void setDefaultZoom(String defaultZoom)
@RequestMapping
public org.springframework.web.portlet.ModelAndView getView(javax.portlet.RenderRequest request,
@RequestParam(required=false)
String location)
throws Exception
Exception@ResourceMapping
public org.springframework.web.portlet.ModelAndView getMapData(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
Copyright © 2013 Jasig. All Rights Reserved.