File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -891,10 +891,16 @@ var GMaps = (function($) {
891
891
892
892
// Static maps
893
893
GMaps . staticMap = function ( options ) {
894
- var static_map_root = 'http://maps.googleapis.com/maps/api/staticmap?' ;
895
894
var parameters = [ ] ;
896
895
var data ;
897
896
897
+ var static_root = 'http://maps.googleapis.com/maps/api/staticmap' ;
898
+ if ( options . url ) {
899
+ static_root = options . url ;
900
+ delete options . url ;
901
+ }
902
+ static_root += '?' ;
903
+
898
904
var markers = options . markers ;
899
905
delete options . markers ;
900
906
if ( ! markers && options . marker ) {
@@ -906,7 +912,6 @@ var GMaps = (function($) {
906
912
delete options . polyline ;
907
913
908
914
/** Map options **/
909
-
910
915
if ( options . center ) {
911
916
parameters . push ( 'center=' + options . center ) ;
912
917
delete options . center ;
@@ -1043,7 +1048,7 @@ var GMaps = (function($) {
1043
1048
}
1044
1049
1045
1050
parameters = parameters . join ( '&' ) ;
1046
- return static_map_root + parameters ;
1051
+ return static_root + parameters ;
1047
1052
} ;
1048
1053
1049
1054
//==========================
You can’t perform that action at this time.
0 commit comments