Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map zoom freeze #284

Closed
ladikusz opened this issue Oct 15, 2015 · 18 comments
Closed

Map zoom freeze #284

ladikusz opened this issue Oct 15, 2015 · 18 comments

Comments

@ladikusz
Copy link

Hi!

I have a strange issue after updating to the latest version. If i zoom in or zoom out on map (any layers), the zoom happens, but does not load the map to the adequate resolution, but the old map freezes. I can pan, but i can't zoom in / out anymore. Also i can't change layer. After a full page reload (F5), i can change layers, i can zoom - only once, again. Is there any trouble with the openlayers, or shall i debug on server side?

Thank you,
Viktor

@vitalidze
Copy link
Owner

Sounds like an issue with internet connection. You should check web browser console for error messages.

@ladikusz
Copy link
Author

Tried the mobile site ( /m ) and it loads instantly, zoom works flawless, the desktop site still have the same problem. Also tried in incognito mode to avoid cache / cookie errors, no luck

@vitalidze
Copy link
Owner

Do you see any errors in browser console?

@ladikusz
Copy link
Author

OpenLayers.js:670 Uncaught TypeError: Cannot read property 'resources' of undefined
traccar-0.js:3331 Uncaught TypeError: Cannot read property 'resources' of undefined

@vitalidze
Copy link
Owner

I confirm that it does not work for me on two of my servers. One is using very old version of the web UI, so it's not related with latest update. Looks like something is broken with integration between OpenLayers and OpenStreetMap.

@Jeferex
Copy link
Contributor

Jeferex commented Oct 15, 2015

I confirm the error too. it is happening in my 2 traccar instalation

@ladikusz
Copy link
Author

Tried with Android 5.1, Chrome browser, and it works. On desktop tried with chrome, mozilla firefox, no luck. So definitely something with the openlayers, but only on desktop browser.

@vitalidze
Copy link
Owner

You mean it works in desktop version opened on android?

@ladikusz
Copy link
Author

Yes, desktop version on android. Tried only openstreetmap, but will try with different layers.

@vitalidze
Copy link
Owner

That's weird. I will check this out when I have time.

@Jeferex
Copy link
Contributor

Jeferex commented Oct 15, 2015

It doesn't work for me in Android with chrome browser.

@ladikusz
Copy link
Author

if i press the open desktop version, then i can zoom, pan OK. But if i select a vehicle, then zoom does not work. The animation after the pinch-zoom happens, but the zoom does not work. So basically does not work, just it seemed work :)

@Jeferex
Copy link
Contributor

Jeferex commented Oct 15, 2015

I found this openlayers/openlayers#1461

how can we solve it @vitalidze ?

@vitalidze
Copy link
Owner

Looks like this is the case. The key is hard coded for now, so the only way to fix it is to make a release with updated key or even move it somewhere to the 'Global settings'. I will try to do it ASAP.

vitalidze added a commit that referenced this issue Oct 15, 2015
vitalidze added a commit that referenced this issue Oct 15, 2015
@vitalidze
Copy link
Owner

Fixed, written news, updated latest and demo versions. Since the main download site is down you can download the traccar-web.war from the release page on github.

Thank you very much for reporting this issue and guiding me with solution. I appreciate that.

@fitzy89
Copy link

fitzy89 commented Oct 16, 2015

Hi @vitalidze, I'm fairly new to this so apologies for my lack of knowledge. I'm running the neptune_theme branch as in #283 and I also have the same issue as mentioned here. Can I just build it again from source and will it have the fix for this issue included? Or will it take a while to apply it to the different branches? I'm not sure how github and branches work really so sorry to take too much of your time

@vitalidze
Copy link
Owner

I have already merged fix to this issue to neptune_theme branch. You need to pull changes from github or just delete your local repository and clone the github repository one more time.

@fitzy89
Copy link

fitzy89 commented Oct 16, 2015

Ok thankyou so much, just doing another clone now. Thanks for the fast and helpful support, wish all developers were as helpful as you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants