Skip to content

Commit

Permalink
chore(server): modify zoom level in manifest (#807)
Browse files Browse the repository at this point in the history
Co-authored-by: nina992 <nouralali992@gmail.com>
Co-authored-by: pyshx <piyushchauhan1004@gmail.com>
  • Loading branch information
3 people committed Nov 21, 2023
1 parent 912d681 commit ae55944
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions server/internal/adapter/gql/gqlmodel/convert_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ func valueInterfaceToGqlValue(v interface{}) interface{} {
switch v2 := v.(type) {
case bool:
return v2
case int:
return v2
case int32:
return v2
case int64:
return v2
case float32:
return v2
case float64:
return v2
case string:
Expand Down
5 changes: 3 additions & 2 deletions server/pkg/builtin/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ extensions:
type: string
value: url
- id: tile_zoomLevel
type: number
type: array
title: zoom level
description: "Change the Zoom Level of the selected tile map. Min: 0 Max: 1"
ui: slider
defaultValue: [0,30]
ui: range
min: 0
max: 30
- id: tile_opacity
Expand Down

0 comments on commit ae55944

Please sign in to comment.