Avoid unnecessary callbacks when changing the marker values