| xqd
@@ -50,14 +50,15 @@ $(function() {
|
|
|
});
|
|
|
|
|
|
var searchService = new qq.maps.SearchService({
|
|
|
- panel:document.getElementById('location-keyword-search'),
|
|
|
map : map
|
|
|
});
|
|
|
|
|
|
- var regionText = $('#location-keyword-input').val();
|
|
|
+ $('#location-keyword-search').on('click', function () {
|
|
|
+ var regionText = $('#location-keyword-input').val();
|
|
|
|
|
|
- searchService.setLocation(regionText);
|
|
|
- searchService.search();
|
|
|
+ searchService.setLocation(regionText);
|
|
|
+ searchService.search();
|
|
|
+ })
|
|
|
});
|
|
|
});
|
|
|
</script>
|