Skip to content

Commit

Permalink
Update PixelView
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Dec 20, 2021
1 parent 57bd274 commit 95ddde9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion localtileserver/tileserver/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ class PixelView(BasePixelOperation):

def get(self, left: int, top: int):
tile_source = self.get_tile_source(projection=None)
return tile_source.getPixel(region={"left": left, "top": top, "units": "pixels"})
region = {"left": left, "top": top, "units": "pixels"}
pixel = tile_source.getPixel(region=region)
pixel.update(region)
return pixel


@api.doc(
Expand Down

0 comments on commit 95ddde9

Please sign in to comment.