Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27906

As an Editor, I want to edit a Map Location field type with the new UI guidelines

    XMLWordPrintable

Details

    • Sprint 5
    • 5

    Description

      Design

      Please refer to:

      • attached screenshots

      Tiles

      Wikimedia is providing tile servers: https://www.mediawiki.org/wiki/Maps. They use OSM Bright from Mapbox (https://github.com/mapbox/osm-bright). OSM Bright has a better rendering than the default OSM map. We should try to use this tile server.

      User interface / User interactions

      IMPORTANT

      Default view

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I view the map
      Then the zoom level is equal to 1
      And there is no point (google maps marker)
      

      Editor defines latitude and longitude

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I enter a valid latitude and longitude in the dedicated fields
      Then the zoom level is equal to 15
      And a point (google maps marker) is added to the map
      

      Editor uses search feature

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I enter a valid address (13 rue Gilibert)
      Then the zoom level is equal to 15
      And a point (google maps marker) is added to the map
      And the Longitude field contains {{4.823455}}
      And the Latitude fields contains {{45.747445}}
      

      Editor uses locate me feature

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I click on {{Locate me}} button
      Then the zoom level is equal to 15
      And a point (google maps marker) is added to the map
      And the Longitude field is updated
      And the Latitude fields is updated
      

      Editor clicks on the map

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I click on the map
      Then a point (google maps marker) is added to the map
      And the Longitude field is updated
      And the Latitude fields is updated
      

      Validations

      The UI should validate the following scenarios

      • Required field and
      • Find location

      The validation will be as it is on v1 when the field loses focus.

      Error Message
      Required field %field_name% field is required
      Find location error Unable to find this address

      Non-translatable field.

      The field is disabled when this field is not translatable.

      Warning message Translation for %field_name% is disabled

      Attachments

        Activity

          People

            Unassigned Unassigned
            supriya.bhargava-obsolete@ibexa.co Supriya Bhargava (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: