任何人请帮助实现点击谷歌地图时获取位置名称。
例如:如果我要单击美国各州,例如“德克萨斯州或阿拉巴马州”位置标记,则需要在单击时获取准确的值。
如果还有其他方法获取位置名称。如果可能的话请分享您的经验。等待你的重播。
下面是我的代码:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport"></meta>
<title>Copy of USA Nevada state - City Level data - Google Fusion Tables</title>
<style type="text/css">
html, body, #googft-mapCanvas {
height: 300px;
margin: 0;
padding: 0;
width: 500px;
}
</style>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false&v=3"></script>
<script type="text/javascript">
//Fusion Table URL : https://www.google.com/fusiontables/data?docid=1vKMjmiVb3eHCEnQ6j5HpIYGZ3Gttth8ac317nxNg#map:id=3
function initialize() {
google.maps.visualRefresh = true;
var isMobile = (navigator.userAgent.toLowerCase().indexOf('android') > -1) ||
(navigator.userAgent.match(/(iPod|iPhone|iPad|BlackBerry|Windows Phone|iemobile)/));
if (isMobile) {
var viewport = document.querySelector("meta[name=viewport]");
viewport.setAttribute('content', 'initial-scale=1.0, user-scalable=no');
}
var mapDiv = document.getElementById('googft-mapCanvas');
mapDiv.style.width …Run Code Online (Sandbox Code Playgroud) 我想向SQL Server单单元格插入500 000个字符。但是,我不能在单个单元格中插入超过43679个字符。
我试图创建表:
create table sample1(name nvarchar(max)
create table sample2(address ntext)
Run Code Online (Sandbox Code Playgroud)
但是我没有成功