Giter Site home page Giter Site logo

googlestorelocator's People

Contributors

jdaehne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

googlestorelocator's Issues

Region GB

I have &region set to GB (have also tried UK) but when searching for example 'Boston' the map returns results based on Boston USA. If I search 'Boston UK' or 'Boston GB' it returns the correct result set. I realise this may be a limitation of Google Maps API.

cache &location

Caching the "&location" propertie to not have AP-Requests all the time.

Feature Requests: Map marker per store, Sort by Tv

This is working really we for me - thank you. Just a couple of things that would enhance it for me. My stores have different markers assigned according to the type of store but only the marker of the parent folder seems to be used. Would be good to be able to sort the list of stores by a tv - in my case by postcode would be good. Thank you again.

Small bugs

OSX : 10.11.4
MAMPro : 3.5
Safari 9.1
Google 49
Firefox 45
Modx 2.4.3

I just install GoogleStoreLocator and I have two small bugs with it:

1) myPosition button
Under Safari when I click on «myPosition» nothing append.
Under Chrome and Firefox when I click on «myPosition» it return me to the home page with this url : http://colline:8888/index.php?id=97?lat=49.404179299999996&lng=-71.7575181.

Is it because I am in a local environment?

2) if I use a name for a store with an apostrophe like «L'Épicerie futée» the map is not display and got these two error message in Safari web console:
a) SyntaxError: Unexpected identifier 'Épicerie'. Expected '}' to end a object literal.
b) InvalidValueError: initMap is not a function

Thank very much for this Extra

Error Message in Log

I got this error message:
[2018-10-02 13:14:44] (ERROR @ /var/www/vhosts/…/www_01/core/components/googlestorelocator/model/googlestorelocator/googlestorelocator.class.php : 60) PHP warning: A non-numeric value encountered

Search by ZipCode only does not return any results

Using the search with zipcode only does not return any results even though appropriate result sets do exist. Searching by city name or city and zipcode works just fine on the other hand. Bug occurs irrespective of result set size (one of my projects has 1500+ address sets, the other one only 60).

initMap is not a function

Installed on localhost without api and plugin working nice.

When i published sit on domain http://rovas.co.rs/index.php?id=93 plugin dont work as expected. No errors in consol, no markers on map. When i try to search i got console error "initMap is not a function" and "Uncaught SyntaxError: Unexpected token ,"

Error log show "deg2rad() expects parameter 1 to be double, string given"

When i inspect further, markers on first load dont have long and lat set.

Help?

getPage not working

Hi, great snippet, thanks for work, i'm trying make pagination, because i have more than 200 stores, but i haven't result, i trying like that
`[[!getPage?
&element=GoogleStoreLocator
&parents=5
&debug=1
&limit=2
&totalVar=gsl.totalResult
]]

[[!+page.nav]]
`

also like that
`[[!getPage?
&element=GoogleStoreLocator
&parents=5
&debug=1
&limit=2
&totalVar=gsl.totalResult
]]
[[!+gsl.stores]]

[[!+page.nav]]
` but pagination placeholder is always empty http://joxi.ru/Q2KdOeFLWGMzAj maybe i forgot something? http://pure.sb200y.tmweb.ru/test.html

A few question

  1. Is it possible to have the form in a page and the results in another? Or eventually load the result with ajax without having to refresh the page?

  2. Dont know if it's a bug or i'm doing something wrong but i'd love to show results only if more than 0 stores are found.
    My code is like this:

[[!GoogleStoreLocator?
&parents=68
&totalVar=totalStores
]]
[[!+gsl.form]]
<span class="debug">[[+totalStores]]</span>
[[+totalStores:is=0:then=There are no stores in your area:else=[[!+gsl.map]]]]

While .debug always show the correct results the output filters doesnt work, it always shows the map even with 0 results.

Sort by Distance

Hi,

I love and am equally frustrated by this Extra! I had it working in the 1.x version, but wanted to update the code so went for upgrade. All good, until I get the results and find it no longer sorts by distance from the searched location, it seems to default to menuindex and I can't get it to list the Stores by Distance from the searched location (which it was doing in version 1.x).

I've updated to 2.0.1 and got it outputting on a test page no problems, and shows the correct distances from the search location. Is there something I am missing/doing wrong, or does version 2.x not support sorting by distance?

Thanks,

Quentin

image

Installed but postcode not converting

I have installed this extra. Created the Google API and enabled the relevant services and created some stores, and a map is created but doesn't have the long and lat for any of the stores.

I'm not sure what I am missing in setting this up but it doesn't appear to be working as expected. This is my call.

[[!GoogleStoreLocator? &parents=[[*id]] &latCenter=51.5213992 &lngCenter=-0.7123154 &zoom=12 &unit=M ]] [[!+gsl.form]] [[!+gsl.map]] [[!+gsl.message]] [[!+gsl.stores]]

Using version 2.0.3 of extra, on site with MODX 2.7.2 and PHP 7.2.

Does this cache the store locations?

I use this on a website with around 50 stores. I offer a proximity search to find the nearest stores within a 30 mile radius. However, in the last two months, my geocoding calls with Google Maps have jumped nearly 8x from 50k a month to over 400k a month. I know for sure that I am not having 400k location search a month on this website, so I am wondering if calling the snippet uncached means I am looking up all 50 odd store locations on every search?

Unit Not Converting

I have used the properties &unit in my call but doesn't appear to convert the km

[[!GoogleStoreLocator? &parents=[[*id]] &latCenter=51.5213992 &lngCenter=-0.7123154 &zoom=12 &unit=M &region=gb ]]

Tried with lowercase m too.

Also the different store addresses do not populate on the map to start with - is that correct?

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.