- Posts: 134
- Thank you received: 0
Markers and tiles...
- Chabi01
- Topic Author
- Offline
- Premium Member
Less
More
5 years 6 months ago #12427
by Chabi01
Markers and tiles... was created by Chabi01
Hi Dima
Hope you are well
I'm back today as i try to work with ZHOsm and the markers.
Check this page : devlagnieu2019.xlcrea373030.com/vie-quot...nt-et-collectes.html
In the top summary, click on "Où trouver les bennes à verre ?".
Then, you can see my little map : 10 markers on a basic map.
The issues in this map (i tried a lot of thing !) are several...
- My tiles does not show up on the map : only one tile and if i move, that is not better..
- My marker are "stacked" on the upper lest corner. If i click on it in the list below (despite the "center and zoom"), the markers are leaved on the left part of the map..
By the way, to get ZHOsm working on the site, i have always to put "domready" in configuration otherwise the map does not appear...
If you could tell me what is going wrong, it can help me a lot
I still continue to try to find by myself but honnestly, after some hours, i'm not sure to succeed
Thanks anyway Dima !
Xavier
Hope you are well
I'm back today as i try to work with ZHOsm and the markers.
Check this page : devlagnieu2019.xlcrea373030.com/vie-quot...nt-et-collectes.html
In the top summary, click on "Où trouver les bennes à verre ?".
Then, you can see my little map : 10 markers on a basic map.
The issues in this map (i tried a lot of thing !) are several...
- My tiles does not show up on the map : only one tile and if i move, that is not better..
- My marker are "stacked" on the upper lest corner. If i click on it in the list below (despite the "center and zoom"), the markers are leaved on the left part of the map..
By the way, to get ZHOsm working on the site, i have always to put "domready" in configuration otherwise the map does not appear...
If you could tell me what is going wrong, it can help me a lot
I still continue to try to find by myself but honnestly, after some hours, i'm not sure to succeed
Thanks anyway Dima !
Xavier
Please Log in or Create an account to join the conversation.
- Chabi01
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 134
- Thank you received: 0
5 years 6 months ago #12429
by Chabi01
Replied by Chabi01 on topic Markers and tiles...
Hi Dima,
I understood why the JQuery was not working : as i have a form on all the page already loading the Jquery, it was a conflict. I change my page to load the form separately and all is ok with the JQuery loading... but the issue is the same with the tiles not loaded and the markers stacked on the left or off screen...
Xavier
I understood why the JQuery was not working : as i have a form on all the page already loading the Jquery, it was a conflict. I change my page to load the form separately and all is ok with the JQuery loading... but the issue is the same with the tiles not loaded and the markers stacked on the left or off screen...
Xavier
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
5 years 6 months ago - 5 years 6 months ago #12446
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Markers and tiles...
Hi Xavier.
It is due to you initialize map in hidden container, like accordion.
In this case your div is not occupy whole page, and when map is loaded - it is set width and height to its size, and when you show it - you'll get wrong size. In this case you need to call map to resize, but I think it is not easy to you (and you didn't access to map variable to access to map).
You can try trick - insert iframe call into your accordion item and call map by plugin or by component call with tmpl parameter like
It is due to you initialize map in hidden container, like accordion.
In this case your div is not occupy whole page, and when map is loaded - it is set width and height to its size, and when you show it - you'll get wrong size. In this case you need to call map to resize, but I think it is not easy to you (and you didn't access to map variable to access to map).
You can try trick - insert iframe call into your accordion item and call map by plugin or by component call with tmpl parameter like
Code:
index.php?option=com_zhosmmap&view=zhosmmap&tmpl=component&id=your_map_id
Don't forget support my developments: post review in JED , donate , help with translation
Last edit: 5 years 6 months ago by Dima.
The following user(s) said Thank You: Chabi01
Please Log in or Create an account to join the conversation.
- Chabi01
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 134
- Thank you received: 0
5 years 6 months ago #12447
by Chabi01
Replied by Chabi01 on topic Markers and tiles...
Thanks Dima
I have tried with an iframe but the result was not convincing me. In place of the iframe, i use an article in popup
Thanks to you to help me to find the "why"
Have a nice day Dima
Xavier
I have tried with an iframe but the result was not convincing me. In place of the iframe, i use an article in popup
Thanks to you to help me to find the "why"
Have a nice day Dima
Xavier
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds