Hi community. Has someone ever experienced an offset on mapbox drag and pan while using on Framer?If someone has experience with mapbox and framer please help me.
Weird issue, dude. I can't see anything wrong with your code.Could it be the module?
Could this be the reason?
Can you check if this fixes the offset issue you had?
Muhammad Athar this seems to fix the issue? can pan and zoom normally on this prototype
What was the fix in the end?
I see...mapLayer.classList.add('map')document.getElementsByClassName('map').setAttribute('id', 'map')As compared to:mapLayer.html = "<div id='map'></div>"mapElement = mapLayer.querySelector("#map")mapElement.style["width"] = Screen.width + 'px'mapElement.style["height"] = Screen.height + 'px'Would love to hear you what it changes behind the scenes.
Damian Chmiel check this one.
Damian Chmiel did you get this to work ? Can you share the fix? I am experiencing the same strange offset while zooming and panning.