Your Time:
Our Time:
← Back to discussions

More Accurate Locations Map

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 24 replies, 8 voices, and was last updated 6 years, 8 months ago by ReeTard.

  • 2016-10-18 at 12:58 am
    Support Expired
    #17175
    dieselpwr
    Participant
    • Topics: 1
    • Replies: 0
    • Total posts: 1
    • Post count: 0

    Whenever i try to save the Location of my business using the form that’s at Locations, the Google Maps API returns (and fills) the form fields with inaccurate location, offset by about 100 meters. Is there a way to manually set the latitude and longitude coordinates, just like the map that appears in Contact Us page?

    You can check how’s displaying at the following URL: http://v2.redbox.com.pa/locations-map/

    If you zoom on the map, you see that the marker is pointing on Calle 126 Oeste, and it should be a little more to the west, exactly on the intersection of Ave. Jose Agustin Arango and Calle 125 A Oeste.

    How can i set a more accurate Location?

    2016-10-18 at 10:38 am
    #17176
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    To display the location accurately, you need to set the zoom value according to your requirement.
    You can change the zoom value in storeup/storeup-niche/js/frontend_map.js file here in the below code

    if(length_array == 1){
    	var zoom = 14;
    } else if (length_array >= 2) {
    	var zoom = 5;
    } else {
    	var zoom = 5;
    }
    2016-11-04 at 5:50 pm
    #17548
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic to be resolved. If you wish to update this topic please reply here instead of creating another topic.

    2017-09-24 at 1:28 pm
    Support Expired
    #21853
    masonj84
    Participant
    • Topics: 3
    • Replies: 4
    • Total posts: 7
    • Post count: 8

    You definitely are not getting what the gentleman above was saying.

    It’s not the zoom, the actual resolution of the latitudinal and longitudinal location is off – and I would agree, about 100 meters to the West. I am in South Dakota, United States – several thousand miles away from the other gentleman, so this is a problem in your code.

    2017-09-24 at 2:03 pm
    Support Expired
    #21855
    masonj84
    Participant
    • Topics: 3
    • Replies: 4
    • Total posts: 7
    • Post count: 8

    So I have gone through to try and resolve this with no luck. Is there an option to complete disable the locations map on the location theme page and just plugin the [DIV][IFRAME] Google Map[/IFRAME][/DIV] ??? This would be easy. Please also reference my post on the ability to customize the location theme page – it’s a problem.

    • This reply was modified 8 years, 11 months ago by masonj84.
    2017-09-24 at 2:50 pm
    Support Expired
    #21858
    masonj84
    Participant
    • Topics: 3
    • Replies: 4
    • Total posts: 7
    • Post count: 8

    Here is clear example of difference:

    Google Map is on top, your map is on bottom and is clearly wrong on the location.

    http://www.cimarronstorageunits.com/locations-map/

    • This reply was modified 8 years, 11 months ago by masonj84. Reason: Clarity
    2017-09-25 at 1:06 pm
    #21867
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    Please check this https://www.latlong.net/ it shows according to this website. But right now we don’t have the Latitude and Longitude fields but will add this in future for more accurate location.

    2019-05-25 at 1:19 am
    Unknown Support Status
    #25400
    shaffes
    Participant
    • Topics: 1
    • Replies: 2
    • Total posts: 3
    • Post count: 2

    I do have an issue with the map zoom. I added your code as directed, however, it’s still zoomed in really close. I need it zoomed out more so you can see streets and landmarks around it.

    2019-12-02 at 1:04 pm
    Support Expired
    #26329
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31

    Hi, I excperience the same thing. However I cannot update the address in backend due to a Google Maps API error. I have the keys filled in, and the maps show up as they should on frontend.

    See the screen shots:
    https://we.tl/t-LFnOsJUQIX

    The site URL:

    Hem

    What’s gone wrong?

    2019-12-02 at 3:29 pm
    #26336
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Give us the direct URL to the page, please. The message shows that API is not activated or so.

    2019-12-02 at 3:36 pm
    Support Expired
    #26338
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31

    Frontend pages with maps:

    https://forradet.nu/kontakta_oss/
    https://forradet.nu/vara-anlaggningar/
    https://forradet.nu/location/stora-hoga/

    Do you need access to backend? That’s where the api error is shown.

    2019-12-03 at 3:07 pm
    #26342
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    I can see the maps are showing perfectly for me.

    2019-12-03 at 3:11 pm
    Support Expired
    #26343
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31

    Yeah for me too, except that the pin is in the wrong position, but can’t you read?

    My problem lays in the BACKEND. I can’t change address due to an API ERROR in the BACKEND.

    Look at the SCREENSHOTS attached in the first post:
    https://we.tl/t-LFnOsJUQIX

    Why do I get API error in BACKEND?

    2020-01-13 at 3:52 pm
    #26580
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi, ReeTard
    We had check it is working fine at our side. I was gone through the following errors as you posted. it will happen due to the Google Places API Web Service does not work with an Android or iOS restricted API key. So you have to create a new key if or remove restricted access to the existing key to work it properly.

    Select your project on the Top Left corner and then click on the “ENABLE API AND SERVICES” button on the dashboard.

    Note that you may need to enable more than 1 API (Directions, Geolocating, Geocoding, etc) based on your requirement.

    And your support is expired. For continued support please extend your support license.

    2020-01-14 at 3:25 am
    Support Expired
    #26586
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31
    This reply has been marked as private.
    2020-01-16 at 3:11 pm
    #26590
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi, ReeTard
    I had seen you are using iframe on contact us page instead of iframe use Google Map Shortcode and fill all fields as per your requirements.

    2020-01-16 at 3:16 pm
    Support Expired
    #26591
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31

    What are you talking about? I’m using the built in Location editor included in the theme. It’s a feature you built. I’m not using any iframes, but maybe you (the developers) do?

    Can’t believe that I need to tell YOU this, but this is where you enter the Google Maps-address in the admin:

    Left menu admin / Locations / Choose a location / Scroll down to Location Options and enter an address

    And that’s where the API error shows up.

    2020-01-16 at 3:39 pm
    #26592
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi, ReeTard
    Sorry for the inconvenience. We’re working on this and update you ASAP.

    2020-01-16 at 4:08 pm
    #26594
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Sorry for the misunderstanding the point. We got it cleared that you have an issue with adding address from google search index in maps showing in location post type.

    I see there is an error in browser console *This API project is not authorized to use this API. Places API error: ApiNotActivatedMapError*

    Whichever API you are using, it’s possible that it is not enabled in your account. Let’s fix the ApiNotActivatedMapError error by enabling the API you’re using.

    Go to https://console.developers.google.com/apis/library
    Under “Maps”, click “View All” to see all API’s.
    Click the API you’re using. Our themes and plugins use the Maps JavaScript API, Maps Static API and Geocoding API. Your product may use something different but the JavaScript API is most common for a website.
    Click the Enable button at the top and wait a few minutes for the changes to take effect (Google says changes can take up to 5 minutes).
    Repeat for other APIs you’re using (remember, our themes and plugins use the Maps JavaScript, Maps Static and Geocoding APIs).

    2020-01-16 at 5:58 pm
    Support Expired
    #26597
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31

    Thanks for the long answer. However, if you had read my comment from Jan 14 you can see that I have removed all restrictions from the API key AND also created an entirely new one as well.

    Still not working in BACKEND when I try to update an address to a Location. In FRONTEND however, the API error does not exist. Only in BACKEND, why?

    2020-01-17 at 1:47 pm
    #26600
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi, ReeTard
    The following errors are come due to the Google Places API Web Service in the backend. Now you need to enable the required API functions for your project and then generate the API key.
    You must enable the following APIs for the plugin to be functional:
    Google Maps JavaScript API
    Google Maps Geocoding API
    Google Maps Places API
    Google Maps Embed API
    Enable Required API Functions
    Click the Library link in the API Manager sidebar menu. Click on the Google Maps JavaScript API panel.
    null
    The JavaScript API will probably already be enabled as shown in the screenshot below. If the JavaScript API is not enabled, then click Enable on the Google Maps Javascript API window.

    2020-01-17 at 2:09 pm
    Support Expired
    #26601
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31

    Hi, Thanks. I double checked the APIs and saw that Google Maps Places API wasn’t enabled. So I fixed that and created a new API-key.

    Still the same error though. The maps shows up on the website frontend as they should. No API error.

    But I can’t update an existing Location’s address. The error shows upp immediately in the backend.

    I did the routine again, deactivating all plugins (except StoreUp Core etc), still error.

    Maybe you can try out the site with a API key of your own? So that you can rule out that area of potential problems?

    BTW, the screenshots in your post doesn’t load.

    2020-01-17 at 3:02 pm
    #26602
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Kindly please contact us via Skype so that we can share via Teamviewer or Screensharing and see with the google developer console.

    2020-01-17 at 3:07 pm
    Support Expired
    #26604
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31

    Sure, what name do you have on Skype? Are you available now?

    2020-01-17 at 3:07 pm
    Support Expired
    #26605
    ReeTard
    Participant
    • Topics: 1
    • Replies: 24
    • Total posts: 25
    • Post count: 31
    This reply has been marked as private.

The topic ‘More Accurate Locations Map’ is closed to new replies.