Creating a CMS based map with Webflow + Mapbox

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

ความคิดเห็น •

  • @v.m.4453
    @v.m.4453 ปีที่แล้ว

    I searched for 45min for this video.
    Thank you!

  • @jamied9164
    @jamied9164 ปีที่แล้ว

    I've been stuck on trying to get a CMS map working for years, this video is super helpful!

  • @CarlKho
    @CarlKho ปีที่แล้ว

    Hi KC! Thanks for this. Miss you already.

  • @JonathanSwindell-n9n
    @JonathanSwindell-n9n ปีที่แล้ว

    Thanks for helping me build something amazing!

  • @jonanzing
    @jonanzing ปีที่แล้ว

    This video came in right on time

  • @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 🤣”

  • @hal-zeitlin
    @hal-zeitlin ปีที่แล้ว

    Thanks, cranking on something like this.

  • @rpuchulu
    @rpuchulu 7 หลายเดือนก่อน

    Thanks so much! My clients nedeed this and I was strugling to do this within a collection.

  • @harrybarcia3177
    @harrybarcia3177 10 หลายเดือนก่อน

    Great content, thank's a lot

  • @mannycortez
    @mannycortez ปีที่แล้ว

    This is clutch! Thank you!

  • @Matthias-ps3qo
    @Matthias-ps3qo 10 หลายเดือนก่อน +3

    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!

  • @DeanCookCreative
    @DeanCookCreative ปีที่แล้ว

    Subscribed. Love the style of teaching.

  • @zoranrnjakovic88
    @zoranrnjakovic88 ปีที่แล้ว

    Excellent tutorial, precise and very well explained! Thanks a million! I just needed it

  • @fictionplus
    @fictionplus ปีที่แล้ว

    Love this! I think I like Mapbox better than Google maps now tbh lol

  • @alyssa_bananas
    @alyssa_bananas ปีที่แล้ว +1

    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

  • @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.

  • @christopherzemina1
    @christopherzemina1 4 หลายเดือนก่อน

    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!

  • @akorenblit5
    @akorenblit5 ปีที่แล้ว

    Love it!

  • @Diogenes-96
    @Diogenes-96 5 หลายเดือนก่อน

    Thank you

  • @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!

  • @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

  • @aleksgrynis
    @aleksgrynis 13 ชั่วโมงที่ผ่านมา

    Hey KC your map is not working anymore. What happened to the code that it is not working anymore?

  • @joshprice3634
    @joshprice3634 ปีที่แล้ว +1

    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 :)

  • @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! 😀

  • @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?

  • @getverve
    @getverve ปีที่แล้ว +4

    Thank you so much! Struggled a lot with the custom code parts though and ended up using the Dynamic Map from No Code Flow 😅

  • @annayagodkina3137
    @annayagodkina3137 5 หลายเดือนก่อน

    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.

  • @iciio
    @iciio ปีที่แล้ว +1

    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 : ).

  • @pontuskarlsson2373
    @pontuskarlsson2373 11 หลายเดือนก่อน +1

    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 หลายเดือนก่อน +1

      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.

  • @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?

  • @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 ปีที่แล้ว +1

      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

  • @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 4 หลายเดือนก่อน

      @@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 4 หลายเดือนก่อน

      @@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 4 หลายเดือนก่อน

      this is my main code for applying the CMS filters. Hope it helps.

  • @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!

  • @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!

  • @johnsnow8252
    @johnsnow8252 11 หลายเดือนก่อน

    Hey, nice video, but I don't think it's wise to put your mapbox token right inside the html.

  • @joe6776
    @joe6776 11 หลายเดือนก่อน

    Hi KC! Im working on a project.. Would you like to help me implementing the same thing for payment?