Class DefaultMap
- java.lang.Object
-
- de.hybris.platform.storelocator.map.impl.DefaultMap
-
-
Constructor Summary
Constructors Constructor Description DefaultMap(GPS gps, double radius, java.util.List<Location> pois, DistanceAndRoute route, java.lang.String title, KmlDocument kml)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultMapcreate(GPS center, double radius, java.lang.String title)static DefaultMapcreate(GPS center, double radius, java.lang.String title, java.util.List<Location> poi)static DefaultMapcreate(GPS center, double radius, java.lang.String title, java.util.List<Location> poi, DistanceAndRoute route)DistanceAndRoutegetDistanceAndRoute()get the route element form the map;GPSgetGps()get the IGPS representing the map's central point.KmlDocumentgetKml()Get the map's imageMapBoundsgetMapBounds()returns theMapBoundsof the map instance.java.util.List<Location>getPointsOfInterest()Get the POIs marked on the map.doublegetRadius()Get the value of map radius in kilometersjava.lang.StringgetTitle()Get the map's title
-
-
-
Constructor Detail
-
DefaultMap
public DefaultMap(GPS gps, double radius, java.util.List<Location> pois, DistanceAndRoute route, java.lang.String title, KmlDocument kml)
- Parameters:
gps-radius-pois-title-
-
-
Method Detail
-
create
public static DefaultMap create(GPS center, double radius, java.lang.String title) throws GoogleMapException
- Throws:
GoogleMapException
-
create
public static DefaultMap create(GPS center, double radius, java.lang.String title, java.util.List<Location> poi) throws GoogleMapException
- Throws:
GoogleMapException
-
create
public static DefaultMap create(GPS center, double radius, java.lang.String title, java.util.List<Location> poi, DistanceAndRoute route) throws GoogleMapException
- Throws:
GoogleMapException
-
getGps
public GPS getGps()
Description copied from interface:Mapget the IGPS representing the map's central point.
-
getPointsOfInterest
public java.util.List<Location> getPointsOfInterest()
Description copied from interface:MapGet the POIs marked on the map.- Specified by:
getPointsOfInterestin interfaceMap- Returns:
- List
-
getRadius
public double getRadius()
Description copied from interface:MapGet the value of map radius in kilometers
-
getTitle
public java.lang.String getTitle()
Description copied from interface:MapGet the map's title
-
getKml
public KmlDocument getKml()
Description copied from interface:MapGet the map's image- Specified by:
getKmlin interfaceMap- Returns:
KmlDocument
-
getDistanceAndRoute
public DistanceAndRoute getDistanceAndRoute()
Description copied from interface:Mapget the route element form the map;- Specified by:
getDistanceAndRoutein interfaceMap- Returns:
- the route
-
getMapBounds
public MapBounds getMapBounds()
Description copied from interface:Mapreturns theMapBoundsof the map instance. Mapbounds consists of NW and SE corners.- Specified by:
getMapBoundsin interfaceMap- Returns:
- mapBounds
-
-