Maps are not displayed correctly

  • chidalgom
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
7 months 1 week ago #11413 by chidalgom
Replied by chidalgom on topic Maps are not displayed correctly
ok, sorry, didnt find nothing related to my problem, so thats why i wrote this.

I understand the problem now, but can you link me where I can find the iframe example? or can i use some jquery click event on the tab to reload the map with the right size?

thanks

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

More
7 months 1 week ago #11414 by Dima
Replied by Dima on topic Maps are not displayed correctly
If you have ability you can try to resize map div when tab changed or tab size changed.
As for iframe. You can create for example article with map plugin call and use it as source for iframe.

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

Post your sites as examples into my directory
Google: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Yandex: forum.zhuk.cc/index.php/forum/ym-user-s-sites
Baidu: forum.zhuk.cc/index.php/forum/bdm-user-s-sites

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

  • chidalgom
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
7 months 6 days ago #11415 by chidalgom
Replied by chidalgom on topic Maps are not displayed correctly
thanks for the tip I'll try the jquery option firts... btw, which element(s) has to be resized in order to get the map displayed?

thanks.

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

More
7 months 6 days ago #11416 by Dima
Replied by Dima on topic Maps are not displayed correctly
I think you can try map div (with id=GMapsID (if component call, or contains this for plugin call)

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

Post your sites as examples into my directory
Google: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Yandex: forum.zhuk.cc/index.php/forum/ym-user-s-sites
Baidu: forum.zhuk.cc/index.php/forum/bdm-user-s-sites

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

  • chidalgom
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
7 months 6 days ago #11417 by chidalgom
Replied by chidalgom on topic Maps are not displayed correctly
Ok finally I got it to work.

btw I use this code:

// resize map on active tab
$("a[href='#tab_target_id']").on('shown.bs.tab', function(e) {
var map = map_com_content_article_130_0_1_map, infowindow_com_content_article_130_0_1_map;
var center = latlng_com_content_article_130_0_1_map, routeaddress_com_content_article_130_0_1_map;
google.maps.event.trigger(map, "resize");
map.setCenter(center);
});

Thanks!

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

  • chidalgom
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
7 months 6 days ago #11418 by chidalgom
Replied by chidalgom on topic Maps are not displayed correctly
well, sorry to bother again, but I cant get the var "map" and var "center" dynamically, im using some jquery to grab the name (on document ready) of the main div to generate this vars, but is not working. I hope someone can give some ideas to get this to work.

many thanks.

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

Time to create page: 0.129 seconds

Donate


Go to top