Creating a CMS based map with Webflow + Mapbox

  Рет қаралды 11,095

KC Katalbas

KC Katalbas

Күн бұрын

Пікірлер: 61
@Matthias-ps3qo
@Matthias-ps3qo 10 ай бұрын
In case your map doesn't load and displays "Type Errors", such as Uncaught TypeError: Cannot read properties of undefined (reading 'composite') Make sure to update the version of mapbox-gl-js inside your head tag to match the version of mapbox that you've designed your map in. You can find this version in the settings tab inside mapbox studio.
@GiuseppeDoe
@GiuseppeDoe 5 ай бұрын
Thank you!!!
@HB-pi2ew
@HB-pi2ew 2 ай бұрын
this needs to be a pinned comment!
@jamied9164
@jamied9164 Жыл бұрын
I've been stuck on trying to get a CMS map working for years, this video is super helpful!
@christopherzemina1
@christopherzemina1 3 ай бұрын
This is extremely helpful. Thank you so much! Does anyone know how I can display more than 100 collection items on the map? I'd appreciate a pointer!
@v.m.4453
@v.m.4453 Жыл бұрын
I searched for 45min for this video. Thank you!
@pontuskarlsson2373
@pontuskarlsson2373 11 ай бұрын
I don't see anything in the browser. I have copied the code/CMS from your link, and change the API-token - but nothing shows up for me. Am I missing something?
@kaiwa680
@kaiwa680 11 ай бұрын
Same problem, no map just a background color.
@joanapfa
@joanapfa 10 ай бұрын
@@kaiwa680 same
@liamino
@liamino 8 ай бұрын
update the version of mapbox in the script (in header) and also change the mapbox style (in body) to your own as well.
@HamishDuncan-t3u
@HamishDuncan-t3u Жыл бұрын
Awesome tutorial! Do you know how I would add a custom map pin? Ideally, I could load multiple map pins in different colours to signify different businesses too. Cheers for the help.
@CarlKho
@CarlKho Жыл бұрын
Hi KC! Thanks for this. Miss you already.
@alyssa_bananas
@alyssa_bananas Жыл бұрын
Great video, Kaitlyn, thank you! Did you ever figure out the filtering piece? That's the piece I'm missing and it's driving me crazy! lol
@MadisonHinson-y1s
@MadisonHinson-y1s Жыл бұрын
I'm also needing to figure that piece out
@invencibletheory
@invencibletheory 11 ай бұрын
nice, just a question, how would you go about adding a filter to this, one that you can use to filter through data using parameters like idk, type, area, or whatever
@joshprice3634
@joshprice3634 Жыл бұрын
Hi, Nice work on the video, super helpful! I was wondering if you could help me. The div block cards on the left of the screen are not appearing when I tap the dots on the map? Thanks :)
@kevinemehizer5171
@kevinemehizer5171 Жыл бұрын
Yeah same here.
@rpuchulu
@rpuchulu 6 ай бұрын
Thanks so much! My clients nedeed this and I was strugling to do this within a collection.
@JonathanSwindell-n9n
@JonathanSwindell-n9n Жыл бұрын
Thanks for helping me build something amazing!
@hal-zeitlin
@hal-zeitlin Жыл бұрын
Thanks, cranking on something like this.
@migueljena1621
@migueljena1621 11 ай бұрын
Hi, did you figure out how to add filters? I'm also trying to add clusters, any idea how to integrate those onto the map?
@jonanzing
@jonanzing Жыл бұрын
This video came in right on time
@Biltid
@Biltid 4 ай бұрын
Thank you for a great feature to Webflow and perfect map! 😀 I just have one challenge I hope you have the answer to. I just get the first 100 CMS items to show up on the map. How do I get the rest? When Switch on paginate i get these buttons next to the collection list to push next and when do so it loads the other 100 CMS items. I hope there is a way to pull all CMS items when load the map? Many thanks in advance! 😀
@annayagodkina3137
@annayagodkina3137 4 ай бұрын
Thanks for the video, it was extremely useful! The only problem is that when I click on a circle on the map, I see not just one item, but all the items from the collection. Does anyone else have the same issue? How can I fix this? I have checked everything multiple times but haven't had any luck yet.
@harrybarcia3177
@harrybarcia3177 10 ай бұрын
Great content, thank's a lot
@fictionplus
@fictionplus Жыл бұрын
Love this! I think I like Mapbox better than Google maps now tbh lol
@DeanCookCreative
@DeanCookCreative Жыл бұрын
Subscribed. Love the style of teaching.
@timavodah5864
@timavodah5864 Жыл бұрын
You can actually style google maps as well. But thank you for a very helpful tutorial showing us how to integrate with Webflow CMS!
@zoranrnjakovic88
@zoranrnjakovic88 Жыл бұрын
Excellent tutorial, precise and very well explained! Thanks a million! I just needed it
@mannycortez
@mannycortez Жыл бұрын
This is clutch! Thank you!
@mickohodll5438
@mickohodll5438 Жыл бұрын
Any clue how to add a CMS filter for the different points on the map?
@mickohodll5438
@mickohodll5438 Жыл бұрын
Found a solution by writing my own bit of javascript. Using the a CMS collection checkbox dropdown as filter and adding/deleting popups based on if the checkbox value is set to true or false.
@MadisonHinson-y1s
@MadisonHinson-y1s Жыл бұрын
@@mickohodll5438 Would you be willing to share how you did that? I'm trying to use Finsweet's CMS filtering (which I'm already using for a different list view) to remove the points.
@christopherzemina1
@christopherzemina1 3 ай бұрын
@@mickohodll5438 I was trying to add a filter to my map too. Would you be able to record a short video of how this can be done?
@mickohodll5438
@mickohodll5438 3 ай бұрын
@@christopherzemina1 // Get cms items let listLocations = document.getElementById("location-list").childNodes; let listFeatures = document.getElementById("feature-list").childNodes; // For each colleciton item, grab hidden fields and convert to geojson property function getGeoData() { listFeatures.forEach(function ( location, i ) { let locationName = location.querySelector(".selected-business").innerHTML; let checkboxResult = location.querySelector(".checkbox-id").checked; if (checkboxResult == true || undefined) featureArray.push(locationName); }); listLocations.forEach(function (location, i) { let selectedFeatures = featureArray; const locationFeatures = location.querySelectorAll("#locationFeature"); const locationArray = Array.from(locationFeatures); const features = locationArray.map((item) => item.value); if (selectedFeatures.every(item => features.includes(item)) == true ) { let locationLat = location.querySelector("#locationLatitude").value; let locationLong = location.querySelector("#locationLongitude").value; let locationInfo = location.querySelector(".locations-map_card").innerHTML; let coordinates = [locationLong, locationLat]; let locationID = location.querySelector("#locationID").value; //add array ID let arrayID = (i + 1) - 1; let geoData = { type: "Feature", geometry: { type: "Point", coordinates: coordinates, }, properties: { id: locationID, description: locationInfo, arrayID: arrayID, }, }; if (mapLocations.features.includes(geoData) === false) { mapLocations.features.push(geoData); } } else { }; }); } // Invoke function getGeoData();
@mickohodll5438
@mickohodll5438 3 ай бұрын
this is my main code for applying the CMS filters. Hope it helps.
@Diogenes-96
@Diogenes-96 5 ай бұрын
Thank you
@shanemartin2467
@shanemartin2467 Жыл бұрын
This is awesome. Well done. Trying to figure out how to allow users to submit a form and plot their own point on a map. WHat I'm getting held up on is how to convert their location into longitude / latitude. Any thoughts?
@josselincol
@josselincol Жыл бұрын
Perhaps with Geocoding. Either through Mapbox Geocoding API or through something like SmartMonkey. A possible workflow would be : 1) User submits through Webflow Form - 2) WhaleSync or Zapier transmits to Sheets database - 3) SmartMonkey geocodes 4) WhaleSync or Zapier sends it back to your CMS. But there is probably something easier without using that much SaaS
@angushyams244
@angushyams244 Жыл бұрын
ahh you legend, been racking my head on this!!
@angushyams244
@angushyams244 Жыл бұрын
F'in sweet have pretty good free filter plug ins
@georgy.design
@georgy.design Жыл бұрын
Thanks for the video, Kaitlyn! Very thorough and clearly laid out step-by-step tutorial ✨ Your videos are the content that I want to do myself - some ppl suggested making clickbaity titles and stuff like that, but rn I’m like: “That’s not fun - making turning scrollbars into baguettes is what I call a real content, real web dev 🤣”
@iciio
@iciio Жыл бұрын
Hey Kaitlyn, thanks for this great video! : )) I am trying to figure out, how i can load only one location into the map. pulling this one location from the cms item/ project showing. So i have several cms items representing singlar projects with one location to each. On this project page i want to load the map, wit the corresponding project location. If somebody has an idea of how to do that, id be more than happy : ).
@nicholasdagostino9002
@nicholasdagostino9002 Жыл бұрын
Thanks for the video! Started learning webflow and this gave me a great example how complex a site can be using it. curious if you ever considered using the mapbox api to get local park sites instead of manually adding them as a cms in webflow, do you know if its possible in webflow?
@AlexButterbrodt
@AlexButterbrodt Жыл бұрын
Hi there! I have a question about the access token and the style URL. I cloned the site in webflow and updated the access token and the style URL with the ones for my map. When I publish the site, the map does not populate. Is there something else I need to be updating? Thank you!
@robinson-greig
@robinson-greig Жыл бұрын
I just ran into this same issue. Updating the mapbox versions to v2.9.1 (found within the code injected in the tag) fixed the issue for me.
@reubengallop
@reubengallop 10 ай бұрын
This worked !! you legend @@robinson-greig
@andrgar.design
@andrgar.design 9 ай бұрын
Is the live link still active?
@clementregazzoni7702
@clementregazzoni7702 7 ай бұрын
have a look at my comment, just found why!
@darraghlynch.design
@darraghlynch.design 9 ай бұрын
Have followed this to a tee but still can't get mapbox to load and it seems to be a common issue. Even the mapbox on he cloneable is not loading either so I assume something has changed since this video was published that has caused the error. Has anyone done this recently and found a solution?
@clementregazzoni7702
@clementregazzoni7702 7 ай бұрын
have a look at my comment, just found why!
@akorenblit5
@akorenblit5 Жыл бұрын
Love it!
@getverve
@getverve Жыл бұрын
Thank you so much! Struggled a lot with the custom code parts though and ended up using the Dynamic Map from No Code Flow 😅
@joe6776
@joe6776 11 ай бұрын
Hi KC! Im working on a project.. Would you like to help me implementing the same thing for payment?
@johnsnow8252
@johnsnow8252 11 ай бұрын
Hey, nice video, but I don't think it's wise to put your mapbox token right inside the html.
How to make a Personality Quiz using Webflow CMS and Javascript
29:14
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Top AI Tools of the Week: Revolutionizing Music, Quantum, Smart Homes, and More!
19:27
ManuAGI - AutoGPT Tutorials
Рет қаралды 1,7 М.
Custom Google Maps with Webflow CMS Items
24:08
No Code Collab
Рет қаралды 12 М.
The ULTIMATE SwiperJS Guide [2024 Webflow]
26:07
Simon Lampert
Рет қаралды 4 М.
Custom CMS Maps in Webflow with Mapbox
10:48
39 Digital
Рет қаралды 6 М.
Webflow CMS Advanced Filtering and Search in 2024 (step-by-step)
15:09
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 82 М.
Interactive Maps in Webflow Using CMS Collections
22:25
Timothy Ricks
Рет қаралды 42 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН