Maps: Displaying of tracks not working (with Theming app disabled)

Created on 4 Sep 2019  Â·  8Comments  Â·  Source: nextcloud/maps

Thanks for this nice app. Finally all the geo tags in my pictures have more sense than my technical interest. I'm really happy.

But I've a problem with my tracks. I can see the /index.php/apps/maps/tracks endpoint is delivering the data correctly but instantly throw an error:

TypeError: OCA.Theming is undefined[Weitere Informationen]
tracksController.js:280:13
addTrackMap   https://.../apps/maps/js/tracksController.js:280:13
getTracks/<   https://.../apps/maps/js/tracksController.js:416:17
u             https://.../core/js/dist/main.js:39:22734
fireWith      https://.../core/js/dist/main.js:39:23546
k             https://.../core/js/dist/main.js:39:70718
t/<           https://.../core/js/dist/main.js:39:74242
bug feature tracks good first issue

All 8 comments

Looking at the error message – did you disable the "Theming" app? Then cc @juliushaertl

Otherwise cc @tacruc @eneiluj :)

@juliushaertl is the theming expert @jancborchardt :)

@skjnldsv haha, I actually wanted to cc @juliushaertl, didn’t notice I did not! Must be muscle-memory :heart:

@jancborchardt you're right, with theme app enabled it's working. But I don't do and don't want to use it.

Right, thanks for checking! :) So the app should still work with Theming disabled. I assume this is cause tracks are by default colored with the theming color.

What’s the best course of action here @juliushaertl @eneiluj @tacruc? Seems just a check whether Theming exists is missing, and when there’s no theming it could use the default Nextcloud blue #0082c9 as fallback?

OCA.Theming ? OCA.Theming.color : '#0082c9' should do the trick. Note that whenever you use something in the OCA namespace make sure to check that it is actually available, since those are app related and might be disabled/not loaded by default.

@escoand Do you manage to check if PR #140 solves the problem for you?

@tacruc fix is working for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jakobroehrl picture jakobroehrl  Â·  13Comments

simonspa picture simonspa  Â·  7Comments

LeSpocky picture LeSpocky  Â·  7Comments

paullbn picture paullbn  Â·  7Comments

beardhatcode picture beardhatcode  Â·  13Comments