Package NTNU.IDATT1002.controllers
Class ImageMapFactory
java.lang.Object
NTNU.IDATT1002.controllers.ImageMapFactory
public class ImageMapFactory
extends java.lang.Object
Class ImageMapFactory. Factory for map creation with markers for given images and default options.
Default center location is Copenhagen in order to center the full scale map onto a page.
- Version:
- 1.0 20.04.2020
-
Constructor Summary
Constructors Constructor Description ImageMapFactory()
-
Method Summary
Modifier and Type Method Description com.lynden.gmapsfx.javascript.object.GoogleMap
createMap(com.lynden.gmapsfx.GoogleMapView mapView)
Create a map from givenGoogleMapView
with default options.java.util.List<com.lynden.gmapsfx.javascript.object.Marker>
createMarkers(java.util.List<Image> images)
Create markers from given images.
-
Constructor Details
-
ImageMapFactory
public ImageMapFactory()
-
-
Method Details
-
createMap
public com.lynden.gmapsfx.javascript.object.GoogleMap createMap(com.lynden.gmapsfx.GoogleMapView mapView)Create a map from givenGoogleMapView
with default options.- Parameters:
mapView
- the map view to add the map to- Returns:
- the
GoogleMap
created to enable further customization
-
createMarkers
public java.util.List<com.lynden.gmapsfx.javascript.object.Marker> createMarkers(java.util.List<Image> images)Create markers from given images.- Parameters:
images
- the list of images- Returns:
- a list of markers created from the images
-