File tree 6 files changed +14
-5
lines changed
6 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ Visit the examples in [hpneo.github.com/gmaps](http://hpneo.github.com/gmaps/)
8
8
Changelog
9
9
---------
10
10
11
+ 0.1.12.3
12
+ -----------------------
13
+ * New method: refresh
14
+
11
15
0.1.12.2
12
16
-----------------------
13
17
* New options in GMaps constructor: width and height
Original file line number Diff line number Diff line change 7
7
< script src ="http://maps.google.com/maps/api/js?sensor=true "> </ script >
8
8
< script src ="../gmaps.js "> </ script >
9
9
< link href ="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css " />
10
- < link href ="examples.css " />
10
+ < link rel =" stylesheet " type =" text/css " href ="examples.css " />
11
11
< script >
12
12
$ ( document ) . ready ( function ( ) {
13
13
var url = GMaps . staticMapURL ( {
Original file line number Diff line number Diff line change 7
7
< script src ="http://maps.google.com/maps/api/js?sensor=true "> </ script >
8
8
< script src ="../gmaps.js "> </ script >
9
9
< link href ="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css " />
10
- < link href ="examples.css " />
10
+ < link rel =" stylesheet " type =" text/css " href ="examples.css " />
11
11
< script >
12
12
$ ( document ) . ready ( function ( ) {
13
13
var url = GMaps . staticMapURL ( {
Original file line number Diff line number Diff line change 7
7
< script src ="http://maps.google.com/maps/api/js?sensor=true "> </ script >
8
8
< script src ="../gmaps.js "> </ script >
9
9
< link href ="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css " />
10
- < link href ="examples.css " />
10
+ < link rel =" stylesheet " type =" text/css " href ="examples.css " />
11
11
< script >
12
12
$ ( document ) . ready ( function ( ) {
13
13
var path = [
Original file line number Diff line number Diff line change 7
7
< script src ="http://maps.google.com/maps/api/js?sensor=true "> </ script >
8
8
< script src ="../gmaps.js "> </ script >
9
9
< link href ="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css " />
10
- < link type ="text/css " href ="examples.css " />
11
- < script >
10
+ < link rel =" stylesheet " type ="text/css " href ="examples.css " />
11
+ < script type =" text/javascript " >
12
12
var map ;
13
13
var route ;
14
14
$ ( document ) . ready ( function ( ) {
51
51
lat : - 12.043333 ,
52
52
lng : - 77.028333 ,
53
53
zoom : 16 ,
54
+ height : '500px' ,
54
55
click : function ( e ) {
55
56
map . addMarker ( {
56
57
lat : e . latLng . lat ( ) ,
Original file line number Diff line number Diff line change @@ -159,6 +159,10 @@ var GMaps = (function($) {
159
159
buildContextMenu ( 'map' , e ) ;
160
160
} ) ;
161
161
162
+ this . refresh = function ( ) {
163
+ google . maps . event . trigger ( this . map , 'resize' ) ;
164
+ } ;
165
+
162
166
// Map methods
163
167
this . setCenter = function ( lat , lng , callback ) {
164
168
this . map . panTo ( new google . maps . LatLng ( lat , lng ) ) ;
You can’t perform that action at this time.
0 commit comments