Details
-
Story
-
Resolution: Done
-
High
-
None
-
None
-
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
- In v1, the default value of the MapLocation field is 0,0 (latitude, longitude) which is a location on the map. The default value should be empty.
- Scrolling with mouse will be disable: http://leafletjs.com/reference-1.2.0.html#map-scrollwheelzoom
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
Issue Links
- links to