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 widget.in my map.
Thanks for your help..
see the code below; SearchWidget and Div form for search
var searchWidget = new Search({
view: view1
});
searchWidget.startup();
// 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>
</form>
<div class="tfclear">