- Posts: 3
- Thank you received: 0
Inserting a dynamic map in a K2 article
- JFP
- Topic Author
- Offline
- New Member
Less
More
4 years 5 months ago #13554
by JFP
Inserting a dynamic map in a K2 article was created by JFP
Hi there
Thank you for the wonderful OpenStreetMap component ! I already created a map of a list of events from a sql base and it works perfectly.
Now I would like to show a simple map module or element inside a K2 article.
In order to do that I created supplementary fields lon and lat in K2 for the center and marker of the map.
I just wanted to know how it is possible to 'pass' these fields to your module, so that they will represent the coordinates of the center and marker and aloow to present your map element
Best regards
Jean-Francois
Thank you for the wonderful OpenStreetMap component ! I already created a map of a list of events from a sql base and it works perfectly.
Now I would like to show a simple map module or element inside a K2 article.
In order to do that I created supplementary fields lon and lat in K2 for the center and marker of the map.
I just wanted to know how it is possible to 'pass' these fields to your module, so that they will represent the coordinates of the center and marker and aloow to present your map element
Best regards
Jean-Francois
Please Log in or Create an account to join the conversation.
- JFP
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 5 months ago #13555
by JFP
Replied by JFP on topic Inserting a dynamic map in a K2 article
Complement : I could also use php variables to pass information to the module,
but I do not see how to pass then to the visualisation section.
but I do not see how to pass then to the visualisation section.
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
4 years 5 months ago #13556
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Inserting a dynamic map in a K2 article
Hi.
Today you can create overview map (with article attributes) only for joomla articles (here description wiki.zhuk.cc/index.php/Zh_OpenStreetMap_...Article_Overview_Map )
Today there is no plugin call to process K2 article attributes
Today you can create overview map (with article attributes) only for joomla articles (here description wiki.zhuk.cc/index.php/Zh_OpenStreetMap_...Article_Overview_Map )
Today there is no plugin call to process K2 article attributes
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.
- JFP
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 5 months ago #13558
by JFP
Replied by JFP on topic Inserting a dynamic map in a K2 article
Thank you Dimitri for this prompt answer.
Unfortunately, all our articles are in K2...
I could try to use leaflet fonctions to do that job, being inexpert, it would be certainly easier using your module.
Is there any possibility to pass the coordinates to your module, using php variables $lat and $lon ?
Regards
Jean-François
Unfortunately, all our articles are in K2...
I could try to use leaflet fonctions to do that job, being inexpert, it would be certainly easier using your module.
Is there any possibility to pass the coordinates to your module, using php variables $lat and $lon ?
Regards
Jean-François
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
4 years 5 months ago #13559
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Inserting a dynamic map in a K2 article
For K2 today there is K2 overview map.
It is module + plugin
Plugin collects K2 items (when you use search of it), and pass it to module.
Module shows items on map.
In this case K2 item can have latitude, longitude, icon attributes.
You can check it in real site motorsports.directory/
If items in cluster (in the same position), for example events on the same place, there is list of it.
And there is customization for list content and for popup content.
If you will not access to this site I can post some images to explain.
And for your case - I can extend article overview map plugin to have access to your K2 item properties to display map in K2 article with your position (like it is done for simple article). Ie it will be the other call, for example like
{zhosmmap-k2-overview:NNN;Center;Zoom;MapType;Width;Height;Action}
And you can add it into your article body to have map.
Or do you need to the other wish. For what reason do you need php access?
It is module + plugin
Plugin collects K2 items (when you use search of it), and pass it to module.
Module shows items on map.
In this case K2 item can have latitude, longitude, icon attributes.
You can check it in real site motorsports.directory/
If items in cluster (in the same position), for example events on the same place, there is list of it.
And there is customization for list content and for popup content.
If you will not access to this site I can post some images to explain.
And for your case - I can extend article overview map plugin to have access to your K2 item properties to display map in K2 article with your position (like it is done for simple article). Ie it will be the other call, for example like
{zhosmmap-k2-overview:NNN;Center;Zoom;MapType;Width;Height;Action}
And you can add it into your article body to have map.
Or do you need to the other wish. For what reason do you need php access?
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.
Time to create page: 0.181 seconds