The comment you are looking for have either been moved to a new discussion or been deleted.

Cannot create a new map

Creating a new map doesn't work. Tried to create a polygon region map and save it, however nothing happens. Looking at the XHR request, the server gives a response:

{
"message": "Invalid map specified.",
"statusCode": 400
}

Tried in Firefox 65.0 and Chrome 72.0.3626.71.

Comments

  • Hi mikko,

    That's weird, let me try to recreate it, can you send me a screenshot of the map editor so I can see the polygon + settings when you try to save?

    thanks,
    Mikael
  • Is there perhaps a minimum size for the polygon? Because this map doesn't save:


    But this does:


    Tried it around a few random locations and as soon as the polygon got down to a certain size, the map stopped saving. Here's the actual JSON request for a map that doesn't save (roughly the same area as in the first screenshot):

    {"customCoordinates":[],"regions":[{"coordinates":[{"lat":47.662534425304614,"lng":9.188928566709365},{"lat":47.66970195487206,"lng":9.146013222471083},{"lat":47.66785236404522,"lng":9.112024269834365},{"lat":47.637093313238,"lng":9.10790439678749},{"lat":47.61904574214498,"lng":9.17553897930702},{"lat":47.6502779820246,"lng":9.21948429180702}]}],"name":"K","description":"","avatar":{"background":"sunrise","landscape":"forest","ground":"beige","decoration":"tractor"},"published":false}

    mikko
  • Yep, there's a minimum count, 5 locations. But you shouldn't be able to click the save button if that isn't reached.. Which is how it is when creating a map with custom coordinates.

    Thanks for finding it, I'll fix it so you cant save if the polygon has less than 5 locations!
    Mikael
  • I see you pushed the fix. But if we create a polygon with less than 5 locations, and another one with less than 5 locations as well, even if the two polygons accumulate more than 5 locations the map still can't be saved. You should count all the polygon locations instead (also display it as well).

    Another small idea for the editor: add a pop-up warning when trying to refresh / close the tab / window or try to exit the editor by clicking another link. This would prevent loss of work because of a missclick etc.
    Mapper
  • Hi,

    you're quick! thanks for pointing that out, I'll fix it.

    best,
    Mikael

Add your comment or create a new post

Your name and post can be seen by everyone.Your e-mail will never be shown publicly.