googlemap-search-control
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Search Control, Google Maps API v3
googlemap-search-control
========================

Search Control, Google Maps API v3. (simple example)

Customize Example
-----------------

Use **Bootstrap framework**.

```js
function initialize() {
    var myLatlng = new google.maps.LatLng(-34.397, 150.644);
    var myOptions = {
        zoom: 8,
        center: myLatlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

    // bind a search control to the map, suppress result list
    var sControl = new google.maps.SearchControl(map, {
        template:
            "
"+ "
"+ ""+ ""+ "
"+ "
", width: "50%" }); sControl.index = 1; map.controls[google.maps.ControlPosition.TOP_LEFT].push(sControl); } google.maps.event.addDomListener(window, 'load', initialize); ```

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。