-
Notifications
You must be signed in to change notification settings - Fork 144
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 tiles mostly disappear on zoom of standard map #69
Comments
I made some progress with this, seems that it's somehow related to vuex. I can use the map normally until I commit the map object to the vuex state. Then everything goes haywire, like in the video above. I've disabled everything that the app does with the map once it's in the state store. I can't for the life of me figure out why just adding the map object to the state store would cause this problem |
It's not that simple. It's generally bad idea to add to Vuex or component's export default {
// …component code…
created() {
this.map = null
},
methods: {
onMapLoaded(event) {
// in component
this.map = event.map
// or just to store if you want have access from other components
this.$store.map = event.map
}
}
} |
Hi, Thank you, yes, that explains it. I'm using typescript, so I can't just extend the $store in that way, but I created a shared service the store and components can share, and it works great. Closing- |
@chriszrc Can you share a repro link? I'm facing a similar issue. |
This issue was solved by not keeping the map object in a vuex store
…On Fri, May 17, 2019, 3:08 AM Vinayak Kulkarni ***@***.***> wrote:
@chriszrc <https://github.com/chriszrc> Can you share a repro link? I'm
facing a similar issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#69?email_source=notifications&email_token=AGEBMKLAWZX4T35DIYUPNOTPVZKXPA5CNFSM4GMDBDMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVT57ZY#issuecomment-493346791>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGEBMKNS23EY4DIIS3VF723PVZKXPANCNFSM4GMDBDMA>
.
|
I tried both options, still same issues if tiles aren't satellite Ref: #111 (comment) |
In case this will help anyone, this solved my issues with multiple maps in one app, and their broken style: Actually setting isVue to true solved this |
It solved the issue on my side. My component has vuex-mapped properties, although edit: actually, as stated in vuejs/vue#2637 (comment)
Declaring the property solely in the |
I can post all the code, but it's really just the standard setup of the basic map. I've never encountered this with other mapbox maps:
Appreciate any ideas of what might be going wrong. I can pan around on the initial zoom level and everything is fine, but as you can see in the recording, once I zoom in, the map gets weird-
The text was updated successfully, but these errors were encountered: