wordpress - Using Google Maps with Natural Earth Data Set in Fusion Tables -
i trying create plugin wordpress takes array of country names entered in post or page creation (much tags), , generates map using google maps apiv3 of countries highlighted (using polygon data natural earth data set), coming extremely short in area of finding resources regarding how merge these 2 technologies together.
i pretty familiar google maps api , how manipulate within wordpress using php , variables provided post object, can't seem figure out how merge data provided in natural earth data set.
i have stumbled on these, still can't figure out.
country boundries using google map api v3
google maps v3: draw german state polygons?
http://www.geocodezip.com/geoxml3_test/v3_fusiontables_query_sidebarf_local.html?country=germany
the last link there close want do, except multiple countries matter of adding more poi's in form of countries. can't work on site.
does know of tutorials on how this? or better yet, has done type of thing success?
here's have currently:
<head> <script type="text/javascript"src="https://maps.googleapis.com/maps/api/&sensor=false"></script> <script type="text/javascript"> function initialize() { map = new google.maps.map(document.getelementbyid('map-canvas'), { center: new google.maps.latlng(27.246933444275317, 318.515625), zoom: 2, maptypeid: google.maps.maptypeid.roadmap }); layer = new google.maps.fusiontableslayer({ map: map, heatmap: { enabled: false }, query: { select: "col38", from: "19llpgskdjrhl2o4fnmj406ri9jtpiik8a-acha", where: "col2 in (\x27can\x27, \x27mex\x27, \x27usa\x27, \x27jpn\x27 )" }, options: { styleid: 9, templateid: 8 } }); } google.maps.event.adddomlistener(window, 'load', initialize); </script> <head> <body> <div id="map-canvas" style="width: 100%; height: 400px;"></div> </body>
thanks,
i think need "in" operator:
and suggest using "iso" column reduce size of query string.
note: did fix "unterminated string":
where: "col2 in (\x27can\x27, \x27mex\x27, \x27usa\x27, \x27jpn\x27 )"
example allowing selection of multiple countries:
Comments
Post a Comment