English 中文(简体)
将两层添加到输电台上,在聚合物中确定一个点
原标题:Adding two layers to a fusion table, Identify a point within a polygon
问题回答

这应该非常容易地从一个网页上进行,基本上,你刚刚需要建立多层输电层,并将之添加到你的地图上,这样就应该做些什么(我确实注意到,如果你想要从一个网页上获得这些层,他们必须作为公众加以标记,那么你目前是私人的):

//Create the map
map = new google.maps.Map(document.getElementById( map-canvas ), 
{
    zoom: 5,
    mapTypeId: google.maps.MapTypeId.ROADMAP
}); 

//Add the first fusion table layer
var layer1 = new google.maps.FusionTablesLayer({
    query: {
    select:  Address ,
    from: **Layer1ID**
    },
    map: map
});

//Add the second fusion table layer
var layer2 = new google.maps.FusionTablesLayer({
    query: {
    select:  Address ,
    from: **Layer2ID**
    },
    map: map
});

Re: "allow the user to select a polygon and then have all of the points within the selected polygon show up on a dashboard and I m not sure if that is possible." The Fusion Table SQL API has an ST_INTERSECTS operator which would almost accomplish this. But it only works for Circles and Rectangles. Not for Polygons.





相关问题
How to decide the current point reach on google map?

How to decide the current point reach on google map? I have a list of points (pickup points) of a route that I want to show in my google map with polyline. Now i have to get the current location of ...

Topographical or relief data in Map APIs

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I ve had a quick look at Google and Bing APIs, but could find nothing there. Google allow you to view a map as ...

Using maps on Windows Mobile

I m experimenting with maps on different mobile platforms. Getting Google Maps to work on Android was easy, following this tutorial. Getting the same to work on Windows Mobile is a different matter. ...

Adding a custom icon to a google map

I need a hand adding a custom icon to some Google Maps javascript. Code below for your reference: function populateMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new ...

RSS to KML Overlay

I m want to display my blog as a Google Map overlay (each post contains geotags). How can I dynamically create a KML overlay from an RSS? Or better, how can I create a loop (PHP) that would display ...

开放街道地图管理员

我需要开放Street的标记管理员。 地图,如山角地图。

热门标签