Some questions (radius and share with component)

  • Chabi01
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 7 months ago #10244 by Chabi01
Hi everybody,
Hi Dima :)

I have some questions :
- Is ZhGoogleMap works with "Search Radius" : everybody know this as a dropbown field where you find "5km - 10Km - 15Km" etc... ? I didn't find it and if it exists where to fill the possible radius searches.

- I often use CCK for Joomla (most of the time Flexicontent CCK). Is this possible to retrieve information from the cck to generate a single marker on a map, or something reverse like "i have a field in my cck with my adress, how can i link this information to Zhgooglemap).
For now, i use a gmap plugin for Joomla with something like :
{map myadress="xxxxxxx"} where the "xxxxx" is retrieve directly from the field in the cck.

That's working with this plugin but again, if it is possible to use a map made in Zhgooglemap, that could be great : flexibility of the cck and map generator from Zhgooglemap...
Thanks :)

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

More
8 years 7 months ago #10247 by Dima
Hi
Probably your call {map myadress="xxxxxxx"} where "xxxxxxx" - it is text address. In this case your call doesn't use CKK data, it uses only your text address which you enter.
Or can you explain what plugin do you use.

Don't forget support my developments: post review in JED , donate , help with translation ;)

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

  • Chabi01
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 7 months ago #10249 by Chabi01
Hi Dima,
Ok, i do this right now on a site.
Using Flexicontent CCK and "Mosmap" plugin.

In my fields, i have in my fields : address (adresse), Postcode (codepostal) and City (ville), Name of the society (title) and name of the leader (chefenteprise).
As the plugin allow to put an address, a text and a tooltip, it is then quite easy to do :
The plugin in an article work like this :
Code:
{mosmap Largeur='100%'|hauteur='auto'|address='type here the full address'|marker='1'|text='type here the text in the bubble marker'|tooltip='type here the text to show on rollover when the marker is closed'|align='center'}


So, with my fields, it become :
Code:
<?php $varadrcomplete = $this->fields['adresse']->display . ', ' . $this->fields['codepostal']->display . ' ' . $this->fields['ville']->display; $varmarkertitle = '<strong>'. $this->fields['title']->display .'</strong><br/>'. $this->fields['chefentreprise']->display . '<br/>'. $varadrcomplete; ?> {mosmap Largeur='100%'|hauteur='auto'|address='<?php echo $varadrcomplete; ?>'|marker='1'|text='<?php echo $varmarkertitle; ?>'|tooltip='<?php echo $this->fields['title']->display; ?>'|align='center'}

This is working well.
What i am wandering is : if i could call a specific map to show this marker, i could use all the function that you have included in the map (styling, etc..).

Xavier

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

Time to create page: 0.175 seconds
Powered by Kunena Forum