diff --git a/README.md b/README.md index 36266b7..f0dca11 100644 --- a/README.md +++ b/README.md @@ -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) | diff --git a/servermap/delivery/http/http_delivery.go b/servermap/delivery/http/http_delivery.go index 1ea6d02..97d21c7 100644 --- a/servermap/delivery/http/http_delivery.go +++ b/servermap/delivery/http/http_delivery.go @@ -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{