(js)fix: myLocation and myLocationButton are always set
MODIFY
.travis.yml
.travis.yml
@@ -51,7 +51,4 @@ before_script:
- npm install -g cordova cordova-paramedic
script:
- - echo "Travis branch is $TRAVIS_BRANCH"
- # test demo flavour
- # for me espresso test failed on `onView` check
- - cordova-paramedic --cleanUpAfterRun --platform android --plugin '. --variable API_KEY_FOR_ANDROID=test'
+ - cordova-paramedic --cleanUpAfterRun --platform android --plugin '. --variable API_KEY_FOR_ANDROID=test' --justBuild

MODIFY
www/Map.js
www/Map.js
@@ -256,9 +256,13 @@ Map.prototype.setOptions = function(options) {
}
this.set('myLocation', myLocation);
this.set('myLocationButton', myLocationButton);
+ if (myLocation === true || myLocation === false) {
options.controls.myLocation = myLocation;
+ }
+ if (myLocationButton === true || myLocationButton === false) {
options.controls.myLocationButton = myLocationButton;
}
+ }
if (options.camera) {
if (options.camera.latLng) {
options.camera.target = options.camera.latLng;

(js)fix: myLocation and myLocationButton are always set  #2475