This topic has 24 replies, 8 voices, and was last updated 6 years, 8 months ago by ReeTard.
Tagged: location page map
Viewing 25 posts - 1 through 25 (of 25 total)
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?
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;
}
We are setting this topic to be resolved. If you wish to update this topic please reply here instead of creating another topic.
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.
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.
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/
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.
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:
What’s gone wrong?
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?
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.
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.
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).
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?
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.

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.

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.
Viewing 25 posts - 1 through 25 (of 25 total)
The topic ‘More Accurate Locations Map’ is closed to new replies.