The Map Portlet is a JSR-286 portlet includes an API for representing campus locations, including geo coordinates, addresses, categories, etc. Users can search/browse to find particular locations
Testing!!
- Stefanos is making changes
- Display Map with markers
- API for representing campus locations
- Search or Browse locations
The portlet has one property file: configuration.properties and one map file: map.json
- Check out project from https://github.com/Jasig/MapPortlet
- Configure src/main/resources/configuration.properties
- Run
mvn install
- Deploy the war
Field | Description |
---|---|
latitude | latitude of location |
longitude | longitude of location |
name | Name of location. Displayed to user and available in searches |
abbreviation | Abbreviation of location. Displayed to user and available in searches |
address | Postal address of location |
description | Description to display to users when location is selected |
img | URL of image to display to user |
searchText | Do not specify. Field is constructed from name and abbreviation |
searchKeys | List of additional strings included in user searches |
categories | List of categories for 'Browse by category' function. |
campuses |
Preference Name | Default | Description |
---|---|---|
apiKey | API key to use for Google Maps | |
latitude | 41.300937 | Latitude to display for initial map view |
longitude | -72.932103 | Longitude to display for initial map view |
zoom | 17 | |
mapTypeControl | true | |
panControl | false | |
zoomControl | true | |
streetView | true | |
scaleControl | true | |
rotateControl | false | |
overviewControl | false |
The portlet has sample data in the webapp/demo directory