|
1 | 1 | import { |
2 | 2 | checkRendering, |
3 | | - warning, |
4 | 3 | aroundLatLngToPosition, |
5 | 4 | insideBoundingBoxToBoundingBox, |
6 | 5 | createDocumentationMessageGenerator, |
@@ -111,81 +110,6 @@ const connectGeoSearch = (renderFn, unmountFn = noop) => { |
111 | 110 | transformItems = items => items, |
112 | 111 | } = widgetParams; |
113 | 112 |
|
114 | | - // Always trigger this message because the default value was `true`. We can't |
115 | | - // display the message only when the parameter is defined otherwise a user that was |
116 | | - // relying on the default value won't have any information about the changes. |
117 | | - warning( |
118 | | - false, |
119 | | - ` |
120 | | -The option \`enableGeolocationWithIP\` has been removed from the GeoSearch widget. |
121 | | -Please consider using the \`Configure\` widget instead: |
122 | | -
|
123 | | -search.addWidget( |
124 | | - configure({ |
125 | | - aroundLatLngViaIP: ${widgetParams.enableGeolocationWithIP || 'true'}, |
126 | | - }) |
127 | | -); |
128 | | -
|
129 | | -You can find more information inside the migration guide: |
130 | | -http://community.algolia.com/instantsearch.js/migration-guide |
131 | | - ` |
132 | | - ); |
133 | | - |
134 | | - warning( |
135 | | - typeof widgetParams.position === 'undefined', |
136 | | - ` |
137 | | -The option \`position\` has been removed from the GeoSearch widget. |
138 | | -Please consider using the \`Configure\` widget instead: |
139 | | -
|
140 | | -search.addWidget( |
141 | | - configure({ |
142 | | - aroundLatLng: '${widgetParams.position && |
143 | | - widgetParams.position.lat}, ${widgetParams.position && |
144 | | - widgetParams.position.lng}', |
145 | | - }) |
146 | | -); |
147 | | -
|
148 | | -You can find more information inside the migration guide: |
149 | | -http://community.algolia.com/instantsearch.js/migration-guide |
150 | | - ` |
151 | | - ); |
152 | | - |
153 | | - warning( |
154 | | - typeof widgetParams.radius === 'undefined', |
155 | | - ` |
156 | | -The option \`radius\` has been removed from the GeoSearch widget. |
157 | | -Please consider using the \`Configure\` widget instead: |
158 | | -
|
159 | | -search.addWidget( |
160 | | - configure({ |
161 | | - aroundRadius: ${widgetParams.radius}, |
162 | | - }) |
163 | | -); |
164 | | -
|
165 | | -You can find more information inside the migration guide: |
166 | | -
|
167 | | -http://community.algolia.com/instantsearch.js/migration-guide |
168 | | - ` |
169 | | - ); |
170 | | - |
171 | | - warning( |
172 | | - typeof widgetParams.precision === 'undefined', |
173 | | - ` |
174 | | -The option \`precision\` has been removed from the GeoSearch widget. |
175 | | -Please consider using the \`Configure\` widget instead: |
176 | | -
|
177 | | -search.addWidget( |
178 | | - configure({ |
179 | | - aroundPrecision: ${widgetParams.precision}, |
180 | | - }) |
181 | | -); |
182 | | -
|
183 | | -You can find more information inside the migration guide: |
184 | | -
|
185 | | -http://community.algolia.com/instantsearch.js/migration-guide |
186 | | - ` |
187 | | - ); |
188 | | - |
189 | 113 | const widgetState = { |
190 | 114 | isRefineOnMapMove: enableRefineOnMapMove, |
191 | 115 | hasMapMoveSinceLastRefine: false, |
|
0 commit comments