AnsweredAssumed Answered

Search Widget outside Map View

Question asked by Henseki on Jun 28, 2017
Latest reply on Jul 3, 2017 by GeoAstronaute

Hi All,


My search widget is working fine in my mapview. But I would like it outside my mapview, to be parsed or embedded in the search form I have created in html, so I'm able to do the search in the form rather than the  search my map.


Thanks for your help..


see the code below; SearchWidget and  Div form for search

var searchWidget = new Search({
        view: view1

      // Add the search widget to the top left corner of the view
      view1.ui.add(searchWidget, {
        position: "top-right",
        index: 0
<form action "" = id="searchWidget"  style="float: left" >
      <input type="text" name="q" value="Postcode or address" title="Postcode or address" 
size="21" maxlength="120"><input type="submit" value="search" class="tfbutton">
      <div id="searchWidget"></div>
  <div class="tfclear">