Giter VIP home page Giter VIP logo

Comments (4)

Beittil avatar Beittil commented on July 24, 2024

Ok, so after looking over the code I found this relation to the originMarker:

          //Add origin marker if the setting is set
          if(settings.originMarker === true && settings.fullMapStart === false){
            var originPoint = new google.maps.LatLng(orig_lat, orig_lng);  
            var marker = new google.maps.Marker({
                position: originPoint,
                map: map,
                icon: 'http://maps.google.com/mapfiles/ms/icons/'+ settings.originpinColor +'-dot.png',
                draggable: false
              });
          }

Is there any reason disabling this particular option explicitly when 'fullMapStart' is set to true? Also, might be handy to mention this in your documentation at http://www.bjornblog.com/web/jquery-store-locator-plugin :)

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on July 24, 2024

This is likely a bug but I haven't tested it yet. The reason the fullMapStart check is there is because there is no initial origin latitude and longitude on the first load with that setting. Just need to add a check with the firstRun variable. I'll make sure this is fixed for the next version of the plugin.

from jquery-store-locator-plugin.

Beittil avatar Beittil commented on July 24, 2024

What I did is modify the 'userinput' variable to store the input in a global variable and I replaced fullMapStart check with a check on the input being empty or not.

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on July 24, 2024

This bug should be resolved in version 2.

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.