From 13f3cff1e1981c3b9be7af7960f250ab604035f6 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 19 Apr 2013 14:48:54 -0700 Subject: [PATCH] Don't show geocoder when embedded (#1329) --- js/id/ui.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/id/ui.js b/js/id/ui.js index 8e53cfb68..d7199cb28 100644 --- a/js/id/ui.js +++ b/js/id/ui.js @@ -55,9 +55,11 @@ iD.ui = function(context) { .attr('class', 'map-control zoombuttons') .call(iD.ui.Zoom(context)); - container.append('div') - .attr('class', 'map-control geocode-control') - .call(iD.ui.Geocoder(context)); + if (!context.embed()) { + container.append('div') + .attr('class', 'map-control geocode-control') + .call(iD.ui.Geocoder(context)); + } container.append('div') .attr('class', 'map-control background-control')