To latest comment
This entry is old and may contain information that is not up-to-date.

Map editor becomes laggy with lot of points placed

Hi again,

I noticed the map editor becomes more and more laggy as we put more and more points. After reaching something like 2000 places, it struggles a bit to put a new place when I click on the map. I guess it is not designed to handle so much points.

I make custom maps that cover a whole country so it can be played like any official map so I try to put a huge amount of points to avoid repeats. On my current project I have around 4200 points and it becomes very slow to add more points but it's still smooth when I move and zoom the map so it's specific to the add/remove point functionality.

Do you think there is still possibility for some optimization?

Thanks.


KillerMapper Report inappropriate content

Comments

  • Just forgot to put the link of a map with lot of places so you can look at it: https://geoguessr.com/maps/59a1514f17631e74145b6f47

    This one has around 4200 locations (I tried to count but sometimes I lost my mind lol).
    KillerMapper
  • Hi KillerMapper

    Thanks for the feedback and the link to the map! As you said I don't think we've tested the map editor for as many as 2000+ locations so there likely are some issues. Perhaps the better solution would be to implement some sort of area selector so you don't have to add so many locations?

    Regards,

    Anton
  • Hi,

    An area selection would be a nice addition to the map editor. The only inconvenient I could think is that the game may pick photospheres  (which is not always wanted) and some places where Street view is broken (missing stretch of road, things like that).

    The best would be an actual optimization of the point addition/removal though. I don't know how the editor is coded but is it sure there is no place for some optimization?

    Thanks.
    KillerMapper
  • Hi KillerMapper

    I see your point, my suggestion was to simplify the process so that you wouldn't have to add that many locations to your maps. However, I understand that you don't see this as a problem (also hand-picked locations are most likely are better than machine-picked locations :)).
    There likely are a lot of optimizations we can do on the editor, we'll look into it!

    Regards,
    Anton
  • Hi, thanks for the return.

    I asked that because I like to choose my places, but the idea of an area selection is still a very good idea; many people wanted this and I think even a map editor with an area selection (polygonal selection) exists for the retro version of Geoguessr. This will be a nice addition that will probably bring in more Pro users. And for the photospheres, the best would be an option to tell the game to not pick them when starting a new game (or making a challenge).

    I hope (and I'm sure) you'll be able to fix the slowness of the editor. If it can load all the points when entering editing mode very quickly, it should be possible to add / remove points quickly in the location list as well, I suppose.

    Thanks.
    KillerMapper
  • Those improvements would be great!

    The area selector would be great to fix another problem: It's hard to understand why some countries have an official map and others don't. Netherlands has an official map bug large countries like Mexico, France, Finland etc. don't.
    RadoX1988
  • Hi guys

    Sorry for the late reply to this! Just wanted to give you an update on the problem with the slowness of the editor. As you might suspect the problems occurs when rendering a large number of markers to a single Google map. At the moment we haven't got a fix for this but we'll keep it on our todo-list.

    Regards,
    Anton
  • Hey,

    Yeah I was suspecting that could be a hard thing to solve. But I don't have any issue rendering the map with 5000 points on it. It's very smooth when I pan the map, only zooming is a bit stuttering but nothing annoying. My issue only occurs when I add / remove a point. It's like the site struggles updating the marker list. Maybe it's because all the markers have to be redrawn when we select, add or remove a point?

    Thanks.
    KillerMapper
  • Exactly, once you add a new location, or update an old one the editor has to redraw all the existing locations. This is done in order to make sure that the latest version of each location is shown. Because of this, solving this problem most likely warrants a larger restructuring of how the markers are drawn and redrawn.

    Regards,
    Anton
  • Hello, I come back to this since the issue is always here.

    First, I would like to know the reasons why the map editor has to redraw all the pins all the time. I mean, when you delete a pin, it can make sense to update the pin list and redraw them. But when we add one? I don't see why it is needed, since we don't change anything else, the other pins are not going to move or change because we add a new one. Same thing when you click on an existing pin to see the view without moving it (it should only redraw when we click the "save location" button).

    Next, here are some ideas of tricks that may be able to bypass the problem:

    Add a "read-only mode" where all existing pins are not clickable (you can't select, move or delete them) so you can tell the editor to ignore them when redrawing the locations; this will allow us to keep adding more locations and only redraw the pins that were added since we loaded the map in read-only. Then when we save the map is updated and we can load it again in read-only to reset the dynamic pins to 0 and keep adding more without being slowed down! I can imagine a new button next to the "publish/unpublish" and "edit" that would load the map in this mode.

    • Add a possibility to merge two maps: so we can use a new fresh empty map to add more locations without any slowness, and then merge it with the main map. It will have to check for duplicate locations, which can take time for large maps.

    Add a way to export and import JSON data: I was going to write here but decided instead to make a new thread because this can be something very useful.

    Hope this will give some ideas to bypass this  problem.

    Thanks for reading.
    Mapper

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.