Why GPS still running after close MAPS or Searchbox

Hi Friends,

I have a question. Recently I added Google Maps for location and Geographic position in Searchbox for extract cities. My problem is when I close Maps or searchbox is done, GPS in Mobile keeps activated.
Let me know please whats wrong with me or what kind of workflow need to hang up api call.