@@ -297,6 +297,10 @@ App.prototype.getMap = function(div, params) {
297297 params = params || { } ;
298298 params . backgroundColor = params . backgroundColor || '#ffffff' ;
299299 params . backgroundColor = HTMLColor2RGBA ( params . backgroundColor ) ;
300+ if ( params . camera && params . camera . latLng ) {
301+ params . camera . target = params . camera . latLng ;
302+ delete params . camera . latLng ;
303+ }
300304 args . push ( params ) ;
301305 } else {
302306
@@ -331,6 +335,10 @@ App.prototype.getMap = function(div, params) {
331335 params = params || { } ;
332336 params . backgroundColor = params . backgroundColor || '#ffffff' ;
333337 params . backgroundColor = HTMLColor2RGBA ( params . backgroundColor ) ;
338+ if ( params . camera && params . camera . latLng ) {
339+ params . camera . target = params . camera . latLng ;
340+ delete params . camera . latLng ;
341+ }
334342 args . push ( params ) ;
335343
336344 self . set ( "div" , div ) ;
@@ -438,6 +446,10 @@ App.prototype.setOptions = function(options) {
438446 if ( options . hasOwnProperty ( 'backgroundColor' ) ) {
439447 options . backgroundColor = HTMLColor2RGBA ( options . backgroundColor ) ;
440448 }
449+ if ( options . camera && options . camera . latLng ) {
450+ options . camera . target = options . camera . latLng ;
451+ delete options . camera . latLng ;
452+ }
441453 cordova . exec ( null , this . errorHandler , PLUGIN_NAME , 'exec' , [ 'Map.setOptions' , this . deleteFromObject ( options , 'function' ) ] ) ;
442454} ;
443455
@@ -1362,7 +1374,7 @@ Marker.prototype.getHashCode = function() {
13621374
13631375Marker . prototype . setAnimation = function ( animation , callback ) {
13641376 var self = this ;
1365-
1377+
13661378 animation = animation || null ;
13671379 if ( ! animation ) {
13681380 return ;
0 commit comments