Field address International /Google Maps doesn't Work

More
8 years 3 months ago - 8 years 3 months ago #63610 by cmaciasg
Hi again, guys.

I have a addressint field in my item but show a Javascript error:
Uncaught TypeError: Cannot read property 'split' of undefined.
The line of the error is:

function initAutoComplete_direccioon_store0() {
autoComplete_direccioon_store0 = new google.maps.places.Autocomplete(document.getElementById("custom_direccioon_store_0_autocomplete"), { types: [ "geocode" ] });
google.maps.event.addListener(autoComplete_direccioon_store0, "place_changed", function() {
fillInAddress_direccioon_store0();
});
}
In plugin/flexicontent_fields/addressint/tmpl/field.php.
It seems that autoComplete_direccioon_store0 variable is undefined.
I cant undertand it because a few days ago it works.

Edit: I think that the error is inside of the fillInAddress_direccioon_store0.
place.formatted_address is undefined
Last edit: 8 years 3 months ago by cmaciasg.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #63613 by ggppdk
Hello

it was fix in v3.1.0-rc2
JS was revised (the HTML and DB work had already be done in thepast)
- so that the field now becomes multi-value !!

but there is minor fix after -rc2 (in some cases (contries) in split mode the city is not detected)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago - 8 years 3 months ago #63616 by cmaciasg
Thanks.
I've just upgrade to v3.1.0-rc2.
The JS error disappear, but when I input a address in the search field with a choosen opton (i.e. exact address), not display all the GMAPS results.

EDIT: My error.

This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: console.developers.google.com/apis/api/places_backend?project=_ For more information on authentication and Google Maps Javascript API services please see: developers.google.com/maps/documentation/javascript/get-api-key

;)
Last edit: 8 years 3 months ago by cmaciasg.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.368 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline