You can try detaching it from the template and then trying to insert the map again. Then after inserting the map apply the template again. Or as Ray said above, you can create a non-template page and insert the map there and then copy the necessary code over to the templated page.