AnantLabs / jmaps

Automatically exported from code.google.com/p/jmaps
MIT License
0 stars 0 forks source link

hide | display googlemaps #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

There is a know display issue, if you hide and show div containing
googlemaps component.

To solve this issue you need to call checkResize method.

On my side I added the following method :

Mapifies.CheckResize = function ( element ) {
    var thisMap = Mapifies.MapObjects.Get(element);
    thisMap.checkResize();
}

Regards

Original issue reported on code.google.com by cyrille....@gmail.com on 25 Nov 2008 at 8:43

GoogleCodeExporter commented 9 years ago
Thanks.  That fixed one of my problems.  The final issue is that the map isn't
starting at the correct location.  (43.65903922549534, -70.26037931442261) 
should
take you to 24 Preble Street Portland Maine, and when you enter this value into 
the
Google Maps home page, that is what you get.  In my site, you end up getting 
Gorham
Maine which is about 10 miles West.

Greg

Original comment by GregGoul...@gmail.com on 25 Nov 2008 at 6:21

GoogleCodeExporter commented 9 years ago

Original comment by digitals...@gmail.com on 27 Nov 2008 at 9:11

GoogleCodeExporter commented 9 years ago
Thanks cyrille, I've added a slightly modified version to the code so you can 
use it
like this:

jQuery('#map').jmap('CheckResize').  It comes in handy when doing animates, as 
per
the new demo on http://map.ifies.org - check it out to see.

Original comment by digitals...@gmail.com on 27 Nov 2008 at 9:49