rename one of map service query params, onlyMarkers -> markersOnly

This commit is contained in:
Dawid Wysokiński 2020-09-03 10:44:58 +02:00
parent 095c804ca4
commit 823170f2ed
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ You can generate a server map with this API. The current endpoint is https://api
| ------------------------------------------------ | ---------------------------------------------------------- |
| showBarbarians | false |
| largerMarkers | false |
| onlyMarkers | false |
| markersOnly | false |
| centerX | 500 |
| centerY | 500 |
| scale | 1 (max 5) |

View File

@ -56,7 +56,7 @@ func (h *handler) mapHandler(c *gin.Context) {
Players: c.Request.URL.Query()["player"],
ShowBarbarianVillages: c.Query("showBarbarian") == "true",
LargerMarkers: c.Query("largerMarkers") == "true",
ShowOtherPlayerVillages: !(c.Query("onlyMarkers") == "true"),
ShowOtherPlayerVillages: !(c.Query("markersOnly") == "true"),
})
if err != nil {
c.JSON(http.StatusBadRequest, &gqlerror.Error{