2017 © Pedro Peláez
 

library coordinates-utility

Transform coordinates in different SRS. Navigate to coordinates on the map.

image

mapbender/coordinates-utility

Transform coordinates in different SRS. Navigate to coordinates on the map.

  • Tuesday, June 26, 2018
  • by eSlider
  • Repository
  • 7 Watchers
  • 1 Stars
  • 623 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 127 % Grown

The README.md

Deprecated

This repository is deprecated. Its functionality was integrated into the mapbender core repository in version 4.0. Propose any changes there., (*1)


Old description: Mapbender coordinates utility module

Retrieve coordinates from the map, Zoom to a given map coordinate, (*2)

Features

  • Get coordinates by clicking on the map
  • Transform coordinates to different SRS
  • Navigate to selected coordinates on the map

Element configuration

Coordinates utility element supports the following configuration values:, (*3)

Name Type Default Explanation
addMapSrsList boolean true Offer all SRS configured on the map element for coordinate transformation
srsList list of strings empty array Additional SRS choices to offer for coordinate transformation. Must follow "EPSG:<digits>" form
zoomlevel integer 6 Zoom level to use when centering map (lower = zoomed further out)
<...>
  sidepane:
    class: Mapbender\CoordinatesUtilityBundle\Element\CoordinatesUtility
    addMapSrsList: true      # =default; offer all SRS configured on the Map element
    srsList: ['EPSG:25834']  # Add an additional SRS for transformation
    zoomlevel: 3             # zoom in closer than default on "Center map"

Customizing SRS titles

It is possible to change the displayed title of SRS choices by using an object form or a pipe separator. For the object form, use objects with "name" and "title" keys. The pipe separator form is "<srs name>|<custom title>"., (*4)

<...>
    srsList: 
      # Rename using object form
      - {name: 'EPSG:25832', title: 'Renamed UTM32N'}
      # Rename using pipe separator form
      - 'EPSG:25834|Renamed UTM34N'
      # Use standard name
      - 'EPSG:25831'

NOTE: the backend form input only supports using pipe separator for SRS renaming. The explicit object format is legal in Yaml Application definitions only., (*5)

Installation

The backend form srs suggestions will only work after registering the controller routes with the Symfony router., (*6)

Mapbender Starter already does this., (*7)

To do it manually, add the following to your app/config/routing.yml:, (*8)

mapbender_coordinatesutilitybundle:
    resource: "@MapbenderCoordinatesUtilityBundle/Controller/"
    type: annotation

Note that the top key "mapbender_coordinatesutilitybundle" is technically irrelevant, but must be unique in your routing configuration., (*9)

The Versions

26/06 2018

dev-ol4

dev-ol4

Transform coordinates in different SRS. Navigate to coordinates on the map.

  Sources   Download

MIT

The Requires

  • php >=5.5.4

 

by Svitlana Aliferova

coordinates search mapbender navigate

23/05 2018

dev-master

9999999-dev

Transform coordinates in different SRS. Navigate to coordinates on the map.

  Sources   Download

MIT

The Requires

  • php >=5.5.4

 

by Svitlana Aliferova

coordinates search mapbender navigate

23/05 2018

1.0.3

1.0.3.0

Transform coordinates in different SRS. Navigate to coordinates on the map.

  Sources   Download

MIT

The Requires

  • php >=5.5.4

 

by Svitlana Aliferova

coordinates search mapbender navigate

18/05 2018

dev-fix/initialize-missing-definitions

dev-fix/initialize-missing-definitions

Transform coordinates in different SRS. Navigate to coordinates on the map.

  Sources   Download

MIT

The Requires

  • php >=5.5.4

 

by Svitlana Aliferova

coordinates search mapbender navigate

11/05 2018

1.0.1

1.0.1.0

Transform coordinates in different SRS. Navigate to coordinates on the map.

  Sources   Download

MIT

The Requires

  • php >=5.5.4

 

by Svitlana Aliferova

coordinates search mapbender navigate

11/05 2018

1.0.2

1.0.2.0

Transform coordinates in different SRS. Navigate to coordinates on the map.

  Sources   Download

MIT

The Requires

  • php >=5.5.4

 

by Svitlana Aliferova

coordinates search mapbender navigate

21/12 2017

1.0.0

1.0.0.0

Transform coordinates in different SRS. Navigate to coordinates on the map.

  Sources   Download

MIT

The Requires

  • php >=5.5.4

 

by Svitlana Aliferova

coordinates search mapbender navigate

30/11 2017

dev-fix/readme-composer-execution

dev-fix/readme-composer-execution

Transform coordinates in different SRS. Navigate to coordinates on the map.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Svitlana Aliferova

coordinates search mapbender navigate