文章分类 - google导航
摘要:var geocoder, map, marker = null;$(function() { init(); $(".exit").click(function() { $("#waiMap").hide(); }); $("#showMap").click(function() { $("#waiMap").show();});});var init = function() { var center = new soso.maps.LatLng(39.916527, 116.397128); map = ne
阅读全文
摘要:$(document).ready(function() { baiduMap(); bind_map(); //分页时为地图绑定click事件 $("#pages ul").mouseleave(function() { bind_map(); }); $(".exit").click(function() { $("#waiMap").hide(); });});//单击显示地图function bind_map() { $(".map").click(function()...
阅读全文
摘要:$(document).ready(function() { init(); $(".exit").click(function() { $("#waiMap").hide(); });});//显示地图function showMap(obj) { $("#waiMap").show(); var content = $(obj).find("span").text(); init(content); var y = $(obj).position().top; //获取元素相对的距离顶端的高度 var y2 =
阅读全文
摘要:方法一:JS方法<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"/><link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css"/><script
阅读全文
摘要:转自:http://www.bailim.com/post/119.html 前天想知到一个地方的经纬度。 什么?问我什么是经纬度????麻烦你百度,谷歌可能不屑回答你的问题!!! 记得以前看到过Google地图上有的,所以打开了Google地图,但没有发现经纬度。想了想,以前是在第三方嵌入的Google地图上看到的。我试过当时那个嵌入的Google地图是可以显示任意位置及其相应经纬度信息的。很明显,那个人不可能自己给每个地方标上相应经纬度坐标。看来从Google地图上能取得相应坐标。 Google了一下“google地图 显示经纬度”。找到了《让Google地图乖乖显示出经纬度》。 1. 第
阅读全文
摘要:Google Map开发系列(一)——谷歌地图API密钥(API Key)的解读和使用技巧zz 所谓API密钥(API Key),其实就是一个字符串,在使用script标签导入API类库的时候作为请求参数传给谷歌的地图服务器,形式就是: <script src="http://ditu.google.com/maps?file=api&v=2&key=你注册的API密钥" type="text/javascript"></script> 使用谷歌地图API的第一步就是要注册一个API密钥,谷歌的API使用条款对这个
阅读全文

浙公网安备 33010602011771号