English 中文(简体)
采用谷歌地图标号APIC
原标题:Configuring heatmap overlays using Google Maps API

我试图利用谷歌地图预报生成地点热图。 它发挥了作用,但结果并不十分有用,因为热图所提供部件很少见:

“googlemaphotmap

docs中没有任何东西表明,可以扩大热图,使之在更大的博览中产生。 是否有没有记载的这样做方式,或者这只是限制APIC? 我是否需要更多的数据点? 我先用以下文字接手了代码Im。

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
      html {
        height: 100%
      }

      body {
        height: 100%;
        margin: 0px;
        padding: 0px
      }

      #map {
        height: 100%
      }
    </style>

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript">
      function initialize() {
        var myLatlng = new google.maps.LatLng(44.646959,-63.589697);
        var myOptions = {
          zoom : 14,
          center : myLatlng,
          mapTypeId : google.maps.MapTypeId.ROADMAP
        }

        var map = new google.maps.Map(document.getElementById( map ), myOptions);

        var layer = new google.maps.FusionTablesLayer({
          query: {
            select:  geometry ,
            from:  [ fusion table id removed ] 
          },
          heatmap: { enabled: true }
        });

        layer.setMap(map);
      }
    </script>
  </head>
  <body onload="initialize()">
    <div id="map"></div>
  </body>
</html>
问题回答

检查最高度。 我有一个类似的问题。 最大程度加上半衰期。

maxIntensity: The maximum intensity of the heatmap. By default, heatmap colors are dynamically scaled according to the greatest concentration of points at any particular pixel on the map. This property allows you to specify a fixed maximum. Setting the maximum intensity can be helpful when your dataset contains a few outliers with an unusually high intensity.

如果你使用“谷歌地图”(Javascript AP v3(与你目前使用的“聚合表”二字)的话,你就可以确定你的热图的rad物,完全是你试图做的事。

不幸的是,没有办法利用合并表格APIC。 文件甚至明确提到这一点:

汇合层:

是的。

使用:

heatmap = new google.maps.visualization.HeatmapLayer({
    dissipating: true,
    map: map,
    radius: 50
});

The radius is measured in meters, so my blobs will be 100 meters in diameter. Let me know if this helps you.





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签