Giter VIP home page Giter VIP logo

Comments (5)

sirlothos avatar sirlothos commented on August 27, 2024

This is the code on my html file

/*
        $(function() {
            $('#map-container').storeLocator({
                'slideMap' : false,
                'defaultLoc': false,
                'fullMapStart': false,
                'maxDistance': true,
                //'maxDistanceID':'100',
                'distanceAlert': -1
                //'defaultLat': '26.230187',
                //'defaultLng' : '-80.1401912'
                //autoGeocode: true

            });
        });

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on August 27, 2024

Copied the settings above into my maxdistance-example.html file and I'm not seeing any issues. If you want to limit by 100 create the select input field, set it to 100 and hide it with CSS. maxDistanceID doesn't accept a number like you have commented out above. Also make sure you have all your locations geocoded with a lat and lng. Does your console give any errors?

from jquery-store-locator-plugin.

sirlothos avatar sirlothos commented on August 27, 2024

I have the select input field already in place. The thing is when I turn the MaxDistance to 'true' it stops showing the locations.

from jquery-store-locator-plugin.

sirlothos avatar sirlothos commented on August 27, 2024
  <input type="text" id="bh-sl-address" name="bh-sl-address" />
          <select id="bh-sl-maxdistance" name="bh-sl-maxdistance">
            <option value="100">100 Miles</option>

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on August 27, 2024

Do you have an example link or can you check your browser's web development tools console to see if there are any JavaScript errors?

from jquery-store-locator-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.