Giter VIP home page Giter VIP logo

Comments (10)

bjorn2404 avatar bjorn2404 commented on July 24, 2024

Did you try without that first slash?

from jquery-store-locator-plugin.

Redani avatar Redani commented on July 24, 2024

Yes, but the same result!!
i found a solution, it works but i dont know why!!
markerImg: "/path/img/img.png",
markerDim: { height: 32, width: 32 },
catMarkers: { }

I had to add "catMarkers" even if it's empty, is that normal?

I cease the opportunity to ask you 3 other questions please:
1- when selecting a location, is it possible to bounce the marker 2 times or 3 times, or more?
2- how can I use the callback function to find out if no result has been found?
3- I'm using Mac, and when i scroll using my 2 fingers on the map, it gets zoomed, is it possible to disable this??

Thank you

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on July 24, 2024

Thanks, yes the markerImg setting has a bug. I should have an updated version up before the end of the weekend.

  1. There is nothing built into my plugin to support this but I would think you could do it if you wanted. See the if statement at line 1802 in the current version.
  2. I'll add a no results callback
  3. Yes, this is just a Google Maps setting that you can override with the mapSettings setting. When you use this setting you need to make sure to include the zoom and mapTypeId, which you can copy from the defaults - then just keep adding whatever you want. I've done something similar with the following settings:

$('#map-container').storeLocator({
'mapSettings' : {
zoom : 12,
mapTypeId: google.maps.MapTypeId.ROADMAP,
zoomControl: false,
disableDoubleClickZoom: true,
scaleControl: false,
scrollwheel: false,
navigationControl: false,
draggable: false
}
});

from jquery-store-locator-plugin.

Redani avatar Redani commented on July 24, 2024

Cool, thanks a lot, looking forward to the new updated version :)
HAve a great sunday.

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on July 24, 2024

Fixed in v2.0.2.

from jquery-store-locator-plugin.

Redani avatar Redani commented on July 24, 2024

Thanks,
Any idea when you'll release the update with the no results callback ?

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on July 24, 2024

It's in v2.0.2 with the callbackNoResults setting.

from jquery-store-locator-plugin.

Redani avatar Redani commented on July 24, 2024

oh cool, didn't see it in the changelog :)

Thanks for all ;)

from jquery-store-locator-plugin.

Redani avatar Redani commented on July 24, 2024

Hi Again,

i checked in the options list but didn't find a callback function when a marker and/or a place from the list are being clicked. How can I do so without altering the original js code? I'll need to transmit the reference of the marker...

And also I'd love to send extra parameter to dataLocation file in addition to origAddress, is that possible?

Thanks a lot and happy holidays ;)

from jquery-store-locator-plugin.

Redani avatar Redani commented on July 24, 2024

Hi,

  • I'd like to report a small bug: i can't set the origin marker using the following code:
    originMarker: true,
    originMarkerImg: "/store-locator/img/marker-home.png",
    originMarkerDim: { width: 37, height: 40 },
  • Also, the callbackNoResults is not doing what i'm expecting, I first get this message "Geocode was not successful for the following reason: ZERO_RESULTS" and then another one: "Unable to find address"
  • what is the equivalent of the previous "callbackComplete" callback function? i'll need to preselect the first store in the list but i just can't do it with "callbackSuccess"...

I'm really stuck and your help would be much appreciated. maybe i shouldn't have upgraded to V2 :/
Looking forward hearing back from you

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.