rename one of map service query params, onlyMarkers -> markersOnly
This commit is contained in:
parent
095c804ca4
commit
823170f2ed
|
@ -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) |
|
||||
|
|
|
@ -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{
|
||||
|
|
Reference in New Issue