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.
{
"message": "Invalid map specified.",
"statusCode": 400
}
Tried in Firefox 65.0 and Chrome 72.0.3626.71.
Follow this post
10
followers
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,
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}
Thanks for finding it, I'll fix it so you cant save if the polygon has less than 5 locations!
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.
you're quick! thanks for pointing that out, I'll fix it.
best,
The polygon feature uses a database filled by pre-selected locations from all the world. They went this way to know where Streetview locations are available when creating a polygon. There is no simple way to select a panorama from a whole area other than the brute-force way aka "try and retry random coordinates until you get a valid coverage" and this would take too much time and resources to proceed this way.
I assume they built this database probably by using brute-force way and saved all successful coordinates they got. It contains over 10 millions locations, you can see the number by drawing a polygon all over the world. This means some places may lack coverage because of the randomness way to get valid locations. Also newly added places on Streetview will also be missing as they need to refresh the database, which I suspect costs a lot because of the new Google API pricing (the same new pricing that leaded to the recent paywall). This also means coverage that got remove in the meanwhile is still saved in the database, leading to invalid locations (black screens).
It's kinda hard to manage such database because of how instable Streetview coverage is. And since there is no way to tell the API "select any of the panoramas inside of this area" you're out of luck to select thousands of locations in a single town (except large towns). You can always try to use the manual location selection but you'll have to click thousands of times to cover the area. I myself do all my maps this way, takes lot of time but I know what I select to be sure players get valid locations.
Is there a maximum number of regions?
sure post it here and I'll have a look!
{"name":"clayton","customCoordinates":[],"regions":[{"coordinates":[{"lat":-62.88150122869866,"lng":-60.749620373740896},{"lat":-62.924037711462766,"lng":-60.406297619834646},{"lat":-62.96900910674538,"lng":-60.54088013936583},{"lat":-63.03384585787786,"lng":-60.455736096397146},{"lat":-62.99645761536799,"lng":-60.779832776084646}]},{"coordinates":[{"lat":-48.53444723763478,"lng":68.55527868274804},{"lat":-48.548994773034856,"lng":69.81870641712304},{"lat":-49.02671957873357,"lng":71.08213415149804},{"lat":-49.88367928199119,"lng":70.86240758899804},{"lat":-49.798657166312736,"lng":68.36851110462304}]},{"coordinates":[{"lat":0.5571529226469564,"lng":32.345450835720385},{"lat":0.48025178298346394,"lng":32.982657866970385},{"lat":-0.014127358851165768,"lng":32.949698882595385},{"lat":-0.15694942833594722,"lng":32.34270425368917},{"lat":0.20834532638520864,"lng":32.412742095486045}]},{"coordinates":[{"lat":51.50735364516521,"lng":-0.09119070283850306},{"lat":51.50617834076611,"lng":-0.0842384170719015},{"lat":51.503507081656394,"lng":-0.08475340120276087},{"lat":51.503239947132656,"lng":-0.09282148591955774},{"lat":51.50535026718996,"lng":-0.09252107850990399}]},{"coordinates":[{"lat":-37.75364909592438,"lng":144.8604651502527},{"lat":-37.76613466564001,"lng":144.9593421033777},{"lat":-37.81334362488065,"lng":145.03349981822146},{"lat":-37.856727538145215,"lng":144.9916144422449},{"lat":-37.84479950542133,"lng":144.9037238172449}]},{"coordinates":[{"lat":35.74368369553359,"lng":-78.87024172019409},{"lat":35.74184085742364,"lng":-78.8691809065287},{"lat":35.741224729563775,"lng":-78.8713414258902},{"lat":35.741562253406485,"lng":-78.87323198087316},{"lat":35.74347149617592,"lng":-78.8730603194962}]},{"coordinates":[{"lat":38.66101965198902,"lng":-90.3934127693177},{"lat":38.66132124753641,"lng":-90.39165860462197},{"lat":38.66071805517156,"lng":-90.38981860923775},{"lat":38.65825496695537,"lng":-90.39007610130318},{"lat":38.658003626660395,"lng":-90.39380973625191}]},{"coordinates":[{"lat":21.952286093824114,"lng":-158.13545147933405},{"lat":21.59519870316929,"lng":-156.97090069808405},{"lat":21.016899310096047,"lng":-156.7346946433965},{"lat":20.97074260724463,"lng":-157.68501202620905},{"lat":21.206504322978745,"lng":-158.70674054183405}]},{"coordinates":[{"lat":35.70968559683853,"lng":139.7466828656593},{"lat":35.70717660141543,"lng":139.79852460149914},{"lat":35.669990425766564,"lng":139.787256247301},{"lat":35.65911213040818,"lng":139.7656269138049},{"lat":35.68161420940807,"lng":139.74825846639214}]},{"coordinates":[{"lat":-28.403119034920472,"lng":-71.26866227489745},{"lat":-28.40070305152974,"lng":-71.1230934272412},{"lat":-28.451427129959953,"lng":-71.11348039013183},{"lat":-28.51781473591888,"lng":-71.12721330028808},{"lat":-28.533500250955207,"lng":-71.25767594677245},{"lat":-28.453841955839486,"lng":-71.29750138622558}]}],"description":"hard","avatar":{"background":"darknight","landscape":"forest","ground":"beige","decoration":"none"},"published":true,"highlighted":false}
Hi David,

I added the polygons and the second one "Terres australes et antarctiques françaises" doesn't seem to include any locations. After making a polygon you can see the number of locations inside it in the bottom left corner. You can drag the edges to include a larger area to reach the minimum 5 locations or in this case where there isn't anything close by you can click the "remove region" button to delete it.
Does it look the same when you try to create it?
best,
Yep, I agree.. I've put it on our todo list, I think most people create larger vertices and don't run into this issue.
best,
curl "https://www.geoguessr.com/api/v3/profiles/maps" ^
-H "authority: www.geoguessr.com" ^
-H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" ^
-H "content-type: application/json" ^
-H "accept: */*" ^
-H "origin: https://www.geoguessr.com" ^
-H "sec-fetch-site: same-origin" ^
-H "sec-fetch-mode: cors" ^
-H "sec-fetch-dest: empty" ^
-H "referer: https://www.geoguessr.com/map-maker" ^
-H "accept-language: en,en-US;q=0.9,ru;q=0.8" ^
-H "cookie: _ga=GA1.2.1509411246.1612550107; G_ENABLED_IDPS=google; _ncfa=dFuv1WD^%^2fcW9GBnNpaxHikE5LnfL9d3Y0XTMgAEUuNB4^%^3dQxcDlBfHIlDNFFp7^%^2fAA5gLmYKO0TEMK^%^2b4PEdZGxXQbftNASHF7cXK1dpWv8utILK; devicetoken=7FD1ED90AA; __stripe_mid=2c4fd5a7-eb41-498e-9ed7-08958d55e7f1843111; _gid=GA1.2.354515963.1614370021" ^
--data-raw "^{^\^"name^\^":^\^"Kaz^\^",^\^"customCoordinates^\^":^[^],^\^"regions^\^":^[^{^\^"coordinates^\^":^[^{^\^"lat^\^":51.195534653399356,^\^"lng^\^":71.36170121359395^}^]^},^{^\^"coordinates^\^":^[^{^\^"lat^\^":51.08704560668452,^\^"lng^\^":71.03487075500558^},^{^\^"lat^\^":51.46161925741783,^\^"lng^\^":71.45784438781808^},^{^\^"lat^\^":51.0801441507078,^\^"lng^\^":71.90828384094308^},^{^\^"lat^\^":50.8275359000217,^\^"lng^\^":71.41939223938058^}^]^}^],^\^"description^\^":^\^"^\^",^\^"avatar^\^":^{^\^"background^\^":^\^"day^\^",^\^"landscape^\^":^\^"forest^\^",^\^"ground^\^":^\^"beige^\^",^\^"decoration^\^":^\^"none^\^"^},^\^"published^\^":true,^\^"highlighted^\^":false^}" ^
--compressed