Device Icon missing on demo.traccar.org and local test

Diego Silvaa year ago

Sometimes when entering traccar (demo.org.br) the device icon does not load. Below is the browser console error code:

Image "offroad-positive" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.

Sorry if it's already a known bug, but in the search I did I didn't find anything about it.

Anton Tananaeva year ago

What is "demo.org.br"?

Diego Silvaa year ago
Anton Tananaeva year ago

Have you checked the browser network tab to see if there was any issue with downloading the file?

Diego Silvaa year ago

Console:

util.ts:321 Image "offroad-positive" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.
overrideMethod	@	console.js:213
b	@	util.ts:321
_notify	@	image_manager.ts:224
getImages	@	image_manager.ts:193
getImages	@	style.ts:1537
processTask	@	actor.ts:197
receive	@	actor.ts:136

Network tab
URL Da Solicitação:
https://demo.traccar.org/static/media/offroad.8f77eb8135fb22b0659513060cb62c7b.svg
Método De Solicitação:
GET
Código De Status:
200 OK (do service worker)
Política Do Referenciador:
strict-origin-when-cross-origin
Anton Tananaeva year ago

Interesting. Is it consistently reproducible for you or happens sometimes only?

Diego Silvaa year ago

just a few times. This occurs both in the browser and in the official application traccar manager

Anton Tananaeva year ago

Maybe it's some kind of timeout issue.

Kalp Prajapatia year ago

I have the same issue, but in case I used different webp images and about 20 images and rendered those images around 6k times on map so what is the issue?