Closed arogachev closed 8 years ago
Note that at the moment of writing this you need to use jquery-locationpicker-plugin/src/locationpicker.jquery.js
file only because changes were applied only there.
@arogachev you are fully right. With next release this changes will be applied in 'dist' folder. Thank you.
In new version 0.1.15
mapOptions
setting is presented which is great, becausemapTypeControl
was disabled by default and earlier as a workaround I had to include my own two buttons and programmatically toggle map type.Now I tried to set
mapTypeControl
totrue
(because default Google Maps controls are enough in my case):And as a result, this option was not overridden and was left with
false
value.After some debugging I found the reason is a wrong way of using
extend
:The order of arguments is wrong. Must be:
It was caused by commit https://github.com/Logicify/jquery-locationpicker-plugin/commit/3403d4360009c0e930cfb234bfeb875efdd10066.
Note that initially in #36 it was written correctly.
I'll send PR soon.
It will be great to release new version because this is definerely a bug.