google map and flexicontent

More
12 years 1 month ago #36335 by rottenberg
hello

I have developped a shop directory mainly base on Google map
The address of the site : test.naouri-admin.com

I'm using 2 maps components :
  • Contentmaps which give me the map of all shop
  • Google maps plugin to display the map of a shop when clicking on a shop icon in the general map
.

I use 2 distinct components as they are complementary :
  • With Contentmap I enter in the metat data of the article with the product mygeoposition.com the address and the get latitude longitude of this address in the metadata field. I may enter also an specifical icon for this address in the geo data field.
    A plugin where I choose the categories of articles gives a map where each icon is an hyperlink to the corresponding article
  • With Google map plugin I display a map with a lot of informations (street view itinerary, weather... for the current shop.


I need to improve the way to enter the addresses in FC.

I have seen that MyGeoPosition can be integrated into a site (api.mygeoposition.com). How can I integrate it inside a form ?

How can I transfer the latitude longitude and icon (necessary to Contentmap) into the meta data to get COntentmap working ?


Thank you for advices
best regards

Michel Rottenberg

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

More
12 years 1 month ago #36345 by ggppdk
Replied by ggppdk on topic google map and flexicontent
Hello,
i would like to look at it for future ideas for an FC plugin that gives such functionality or provides better intergation with 3rd-party extesions,
-- and also maybe i can suggest something

so you can send me a PM with admin access and provide 1. 2. 3. steps to follow in order to view what you have achieved so far

Regards


-- 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
12 years 1 month ago #36360 by brandonking
Hello Michel,

To get Lat,Lon in item form..
Code:
function appendAddress() { var x = document.getElementById("FC_field_1").value; var geocoder = new google.maps.Geocoder(); if (geocoder) { geocoder.geocode({ 'address': x }, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { //console.log(results[0].geometry.location); document.getElementById("FC_field_2").value = results[0].geometry.location.lat()+','+results[0].geometry.location.lng();//console.log(results[0].geometry.location); } else { document.getElementById("FC_field_2").value = 'No results found: ' + status; } }); } }

Include js code
FC_field_1 -> you should change this to your address text field
FC_field_2 -> text field where you want to save Lat and Lon

Add below into Field Attribute on Lat/Lon text field
Code:
onclick="appendAddress()"

Then you have to edit contendmap to call Lat/Lon value..

@ggppdk
Is there anyway to save Lat/Lon field value into the metat data of the article?
Coz ContentMap is loading Lat/Lon value(manually entered by author) from metadata field.

Regards,
Brandon

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

More
12 years 1 month ago #36363 by rottenberg
thank you very much.

How can I get the Javascript in the back end page 'manage an article' ?

Contentmaps is using a very interesting script : api.mygeoposition.com/geopicker/
you define the fields of an adress, the user gets a Google map and you can receive lat/lon, zip code...

If that could be used in FC it would be great.

best regards

Michel

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

More
12 years 1 month ago #36365 by rottenberg
I may have found something which is already integrated inside FC : FC 2.0_fleximag.

It's a plugin developped by yopyop001. It's using Google maps plugin.

I test it and tell what is my opinion about it

best regards

Michel

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

More
12 years 1 month ago #36369 by micker
Replied by micker on topic google map and flexicontent
when you find à solution can you post complet solution for comunity ?
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.737 seconds
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
Save