Class Map

java.lang.Object
NTNU.IDATT1002.controllers.NavBarController
NTNU.IDATT1002.controllers.Map
All Implemented Interfaces:
com.lynden.gmapsfx.MapComponentInitializedListener, javafx.fxml.Initializable

public class Map
extends NavBarController
implements javafx.fxml.Initializable, com.lynden.gmapsfx.MapComponentInitializedListener
Controls the buttons and changeable elements on map.fxml, a page where you can find images by location
Version:
1.0 22.03.2020
  • Field Details

    • search

      public javafx.scene.control.TextField search
    • searchBtn

      public javafx.scene.control.Button searchBtn
  • Constructor Details

  • Method Details

    • doBeforePageExit

      public void doBeforePageExit()
      Close outgoing requests when exiting the page.
      Overrides:
      doBeforePageExit in class NavBarController
    • initialize

      public void initialize​(java.net.URL url, java.util.ResourceBundle rb)
      Initialize GoogleMapView and GeoApiContext with required API key. Also add listener for map initialization and bind the address text field to a SimpleStringProperty.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      url -
      rb -
    • mapInitialized

      public void mapInitialized()
      Create map an fetch images from the appropriate task and add individual markers for images.
      Specified by:
      mapInitialized in interface com.lynden.gmapsfx.MapComponentInitializedListener
    • queryAutocomplete

      public void queryAutocomplete​(javafx.scene.input.KeyEvent keyEvent)
      Query for autocomplete predictions and bind them to the corresponding text field.
      Parameters:
      keyEvent -
    • searchGeocodingAddress

      public void searchGeocodingAddress​(javafx.event.ActionEvent event)
      Search a Geocoding address with the current input in the address search text field. Centers the map on the first result.
      Parameters:
      event -