Greenstand / node-mapnik-1

Bindings to mapnik for node.js
http://mapnik.org/documentation/node-mapnik
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Bug: Tile server is limiting the number of requests for icons #91

Open pratikmdhr opened 2 years ago

pratikmdhr commented 2 years ago

Description Tile server is limiting the number of requests from the map client for the tree icons. Right now only 1 request per minute is going through, if more than 1 request is made within 1 minute for a new set of icons, the map client doesnt receive the new icons but strangely the status code is still 200.

Also, the issue seems to be related to one particular zoom level, meaning, if icon is switched in less than 1 minute, the new icon wont show up in that zoom level, but if the map is zoomed in, the new icons appear

kparikh9 commented 2 years ago

Hi @pratikmdhr @dadiorchen I haven't experienced requests being limited. API seems to serve different set of icons instantly, even if different coordinates are passed. As an extra precaution, I disabled cache for the local port the Docker container was bound to. Not sure what may be causing @pratikmdhr to experience the issues demoed last week.

https://user-images.githubusercontent.com/23002786/154406232-7253b154-874d-490c-8159-a137b4aec81b.mp4

.

dadiorchen commented 2 years ago

@kparikh9 can you try this:

  1. keep the url/png the same, /1/1/1.png
  2. change the query between: none, icon=[suit1, suite2, suit3]?
kparikh9 commented 2 years ago

@dadiorchen changing between:

outputs the same picture: image

I don't think anything is wrong with the code - is there any type of console/logger in Digital Ocean that can show if served images are being cached or not?

dadiorchen commented 2 years ago

Sorry, I didn't express it clearly, I just use 'suit1' for an example, you should replace it with the correct value, I saw in your video, when you visited: /1/1/1.png?icon=o then you switched to /1/1/2.png?icon=ptk-s, it then changes to visiting another file, I need you keep the file the same, (/1/1/1.png) and change the parameter/query, (/1/1/1.png?icon=ptk-b)

dadiorchen commented 2 years ago

I will find a way to share you the login credential to check the log on digitalocean

dadiorchen commented 2 years ago

I can not find any potential cache interefrance.

kparikh9 commented 2 years ago

Sorry, I didn't express it clearly, I just use 'suit1' for an example, you should replace it with the correct value, I saw in your video, when you visited: /1/1/1.png?icon=o then you switched to /1/1/2.png?icon=ptk-s, it then changes to visiting another file, I need you keep the file the same, (/1/1/1.png) and change the parameter/query, (/1/1/1.png?icon=ptk-b)

@dadiorchen No worries. I had already checked this before making the original video. The tiles are served correctly when changing the icon parameter. If there isn't any cache interference then I'm not sure what the issue is?