Store Locator Plus® for WordPress Forums Premier Support Easy One – Current Location

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43953
    idesigns
    Participant

    When use clicks Directions in the map bubble i want it to show the users location then the directions. How do I set this as the default?

    #43957
    Cici
    Keymaster

     

    Ummmm easy?  No, the aerial map q. was an easy answer this one is not easy…unless I am not understanding the question which is always a possibility.

    🙂

    Directions are  100% controlled by Google maps, locations sensor by your browser.  You can select use home map marker , and use  Location sensor ….But  you want their home to sh0w up in the map bubble itself?    I do not know how you would add a map marker to appear as the users location in the map bubble, do you mean that you want  something like a  location sensor to find them on earth (NSA??) before they ever query as a search or “talk to Google maps”? scary, but hey what do I know, I am not the techie type.

    See  map bubble shortcodes ,   if you come up with an ingenious way to do it could you let me know?

    Just be aware that Location sensor will not necessarily work with the new Chrome versions IF you do not have a secure site i.e. https.

     

    #43958
    idesigns
    Participant

    Actually, When the user clicks on the map location marker. It shows the bubble. In that bubble there is a link for directions. When clicked it opens up google directions. But I want this to default to the user location. Right now it is using the map centered location I believe.

    #43959
    idesigns
    Participant

    Url to a page: http://www.silveradohomes.com/nevada-communities/

    Click on the icon and click on Community Directions. It defaults to CA or center of map for directions. Can this show current users location for directions?

    #43971
    Cici
    Keymaster

    This falls into the answer in FAQ regarding Location Sensor and Browsers.   (more info here)It works exactly as expected  and warned. When I use  Firefox as my browser pops up a message box that states “site wants to know your location”  and you click ALLOW…if I do not allow, my location will be assumed to be middle of country per Google maps decision. SEE ATTACHED screenshots to show you what happens depending on which browser I choose to use to go to your site.  Firefox asks, Google Chrome never bothers to ask because your site is http. SEE THIS LINK FROM GOOGLE about deprecating. They stated  “We want to start by requiring secure origins for these existing features:

    Geolocation — requires secure origins as of M50

     

    As with gradually marking HTTP as non-secure, we expect to gradually migrate these features to secure-only, based on thresholds of usage, starting with lowest usage and moving towards higher. We also expect to gradually indicate in the UX that the features are deprecated for non-secure origins.”

    When I go to your site using Chrome with current version of Chrome  I see the console error messages about the site being deprecated, . i.e. if your site is not HTTPS (SSL certificate) then they aren’t ever going to show you or  the site visitor their location or even ASK the site visitor to make the decision to allow.. This is GOOGLE and there is no work around  as far as I know, , unless you go to  https , not an easy task according to the developer and his blogs but he does provide you with useful insight if you are thinking of moving in that direction.

    YOUR SITE WITH CHROME :

    Uncaught SyntaxError: Unexpected token ,

    slp.js?ver=4.6.3:123 getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.currentLocation @ slp.js?ver=4.6.3:123

    jquery.js?ver=1.12.4:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.send @ jquery.js?ver=1.12.4:4

     

    #44033
    idesigns
    Participant

    Thanks for the response. I got a workaround in place. We can close this out.

    #44041
    Cici
    Keymaster

    okey dokey, I like your site btw, its coming along nicely. Also Lance and I were discussing the location sensor and the SSL cert today and he told me that there is a site to get one free SSL domain cert. It is going to become standard, Google is pushing for it and Safari is following suit. If you are interested you can send us a chat or an email to support. , if you want an invite to the Slack channel please let us know by email, Lance has to set up the invites. It is where I can see the dev notes and private chat if Lance and I are online at same time, some of the dev bitbucket tasks are a little advanced techspeak.  But for questions that are for SLP support that the community can benefit from ,we still prefer the forums

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Easy One – Current Location’ is closed to new replies.