Reusable Accessible Mapping Platform

API Docs for: 5.2.0
Show:

QuickZoom Class

The QuickZoom class handles zooming in the map based on province, city, or postal code. These zoom in services rely on web services which return extent values based the user-entered province, city, or postal code

Imports RAMP Modules:

GlobalStorage
Map
Util

Methods

changeExtent

(
  • url
  • query
)
private

Change the extent of the map based on the extent data retrieved from the given url

Parameters:

populateCityDropDown

(
  • prov
)
private

Populates the city dropdown menu with the cities in the selected province.

Parameters:

populateDropDown

(
  • url
  • select
  • query
  • mapFunc
)

Populate the given dropdown with data from the given url.

Parameters:

  • url String

    the url to the service containing the data to populate the dropdown

  • select DObject

    the dojo Select object to populate

  • query Object

    to execute

  • mapFunc Function

    the function to convert each element in the retrieved data to a label that can be added to the dropdown menu

validatePostalCode

(
  • fsa
)
private

Returns true if the given postal code is valid, false otherwise.

Parameters: