added a callbak to the layer.push to store the id of the mapview when pushed to the layer stack.