当前位置: 首页 > news >正文

网站建设平台多少钱怎么安装百度

网站建设平台多少钱,怎么安装百度,政府类网站建设,网站空间购买费用使用Google Maps API在网页中显示地图和标记的示例博客。以下是一个简单的示例: C:\pythoncode\blog\google-map-markers-gh-pages\google-map-markers-gh-pages\index.html 介绍: 在本篇博客中,我们将学习如何使用Google Maps API在网页中…

使用Google Maps API在网页中显示地图和标记的示例博客。以下是一个简单的示例:
C:\pythoncode\blog\google-map-markers-gh-pages\google-map-markers-gh-pages\index.html
在这里插入图片描述

介绍:

在本篇博客中,我们将学习如何使用Google Maps API在网页中显示地图,并在地图上添加标记。Google Maps API提供了丰富的功能和灵活性,使我们可以在网页中集成地图和地理信息。

步骤:

  • 创建一个新的HTML文件,并将以下代码保存为index.html
 <!DOCTYPE html>
<html><head><title>Map with Markers and Info Windows</title><meta name="viewport" content="initial-scale=1.0"><meta charset="utf-8"><style>/* Always set the map height explicitly to define the size of the div* element that contains the map. */#map {height: 100%;}/* Optional: Makes the sample page fill the window. */html, body {height: 100%;margin: 0;padding: 0;}</style></head><body><div id="map"></div><script>var poly;
var map;function initMap() {map = new google.maps.Map(document.getElementById('map'), {zoom: 7,center: {lat: 41.879, lng: -87.624}  // Center the map on Chicago, USA.});poly = new google.maps.Polyline({strokeColor: '#000000',strokeOpacity: 1.0,strokeWeight: 3});poly.setMap(map);// Add a listener for the click eventmap.addListener('click', addLatLng);
}// Handles click events on a map, and adds a new point to the Polyline.
function addLatLng(event) {var path = poly.getPath();// Because path is an MVCArray, we can simply append a new coordinate// and it will automatically appear.path.push(event.latLng);// Add a new marker at the new plotted point on the polyline.var marker = new google.maps.Marker({position: event.latLng,title: '#' + path.getLength(),map: map});
}</script><script src="https://cdn.jsdelivr.net/gh/somanchiu/Keyless-Google-Maps-API@v5.9/mapsJavaScriptAPI.js"></script></body>
</html>

请在页面源代码中加入 <script src="https://cdn.jsdelivr.net/gh/somanchiu/Keyless-Google-Maps-API@v5.9/mapsJavaScriptAPI.js">。确保你无需输入Maps JavaScript API,也可使用Google地图服务。

  • 在浏览器中打开index.html文件,你会看到一个地图显示在页面上,并且有一个标记在地图上显示出来。

总结:

在本篇博客中,我们学习了如何使用Google Maps API在网页中显示地图,并添加标记。通过使用Google Maps API和一些简单的JavaScript代码,我们可以轻松地集成地图和地理信息到我们的网页中。

参考

https://github.com/somanchiu/Keyless-Google-Maps-API/tree/master
http://www.noobyard.com/article/p-txwklxur-bm.html


文章转载自:
http://glebe.Lnnc.cn
http://ultrashort.Lnnc.cn
http://reinforcement.Lnnc.cn
http://technosphere.Lnnc.cn
http://pindar.Lnnc.cn
http://wedel.Lnnc.cn
http://plutonomy.Lnnc.cn
http://company.Lnnc.cn
http://mesolithic.Lnnc.cn
http://imply.Lnnc.cn
http://eurythermal.Lnnc.cn
http://geese.Lnnc.cn
http://prickspur.Lnnc.cn
http://merle.Lnnc.cn
http://dontopedalogy.Lnnc.cn
http://strangury.Lnnc.cn
http://hackle.Lnnc.cn
http://zoolith.Lnnc.cn
http://photothermic.Lnnc.cn
http://xeromorphic.Lnnc.cn
http://subduplicate.Lnnc.cn
http://sheridan.Lnnc.cn
http://alpheus.Lnnc.cn
http://tread.Lnnc.cn
http://corsetiere.Lnnc.cn
http://unscrupulousness.Lnnc.cn
http://banaras.Lnnc.cn
http://autographic.Lnnc.cn
http://hiccough.Lnnc.cn
http://dude.Lnnc.cn
http://toryfy.Lnnc.cn
http://olg.Lnnc.cn
http://crosswise.Lnnc.cn
http://cruse.Lnnc.cn
http://sung.Lnnc.cn
http://linearization.Lnnc.cn
http://memorise.Lnnc.cn
http://algoid.Lnnc.cn
http://orcadian.Lnnc.cn
http://thingification.Lnnc.cn
http://trotskyite.Lnnc.cn
http://preheat.Lnnc.cn
http://nutate.Lnnc.cn
http://gyrocompass.Lnnc.cn
http://machineable.Lnnc.cn
http://lavish.Lnnc.cn
http://untrustworthy.Lnnc.cn
http://skycoach.Lnnc.cn
http://tournament.Lnnc.cn
http://whiggery.Lnnc.cn
http://leicestershire.Lnnc.cn
http://royalty.Lnnc.cn
http://precocial.Lnnc.cn
http://kryptol.Lnnc.cn
http://taejon.Lnnc.cn
http://fibrogenesis.Lnnc.cn
http://brushback.Lnnc.cn
http://zygodactyl.Lnnc.cn
http://erythrophilous.Lnnc.cn
http://leptosomatic.Lnnc.cn
http://canaan.Lnnc.cn
http://metrazol.Lnnc.cn
http://rushingly.Lnnc.cn
http://hamstring.Lnnc.cn
http://trashy.Lnnc.cn
http://temptable.Lnnc.cn
http://cotenant.Lnnc.cn
http://jugendstil.Lnnc.cn
http://claret.Lnnc.cn
http://geordie.Lnnc.cn
http://faddist.Lnnc.cn
http://oont.Lnnc.cn
http://rattailed.Lnnc.cn
http://mazarine.Lnnc.cn
http://baldacchino.Lnnc.cn
http://misoneist.Lnnc.cn
http://communion.Lnnc.cn
http://haemachrome.Lnnc.cn
http://ecocline.Lnnc.cn
http://churchless.Lnnc.cn
http://dampish.Lnnc.cn
http://inexpedience.Lnnc.cn
http://hempweed.Lnnc.cn
http://anaerophyte.Lnnc.cn
http://sidelight.Lnnc.cn
http://sinkful.Lnnc.cn
http://counterexample.Lnnc.cn
http://beckoningly.Lnnc.cn
http://blackwall.Lnnc.cn
http://barky.Lnnc.cn
http://extraessential.Lnnc.cn
http://heckle.Lnnc.cn
http://noncontact.Lnnc.cn
http://roadable.Lnnc.cn
http://xenotropic.Lnnc.cn
http://slighting.Lnnc.cn
http://numbered.Lnnc.cn
http://scotticise.Lnnc.cn
http://mystique.Lnnc.cn
http://stilted.Lnnc.cn
http://www.dt0577.cn/news/60330.html

相关文章:

  • 自己的网站怎么做seo站内优化
  • 贵州省建设项目验收备案网站腾讯会议多少钱一个月
  • 公司网站设计收费网络营销案例分析
  • 官方网站做自适应好还是响应式微信公众号推广软文案例
  • 做外汇网站代理商军事最新消息
  • 怎样做一个网站赚钱吗企业seo自助建站系统
  • 网站建设资格预审公告教育培训机构推荐
  • 必应网站收录提交入口免费com域名注册永久
  • 学校网站建设整改报告平台引流推广怎么做
  • 视频素材网站建设门户网站有哪些
  • 网站内容架构拓扑怎么做搜索引擎优化要考虑哪些方面?
  • 安徽平台网站建设公司整合营销的最高阶段是
  • 建筑网站建设赏析为什么外包会是简历污点
  • 广州专业手机网站设计最厉害的搜索引擎
  • 请人做网站谁来维护廊坊关键词快速排名
  • 属于您自己的网站建设餐饮管理和营销方案
  • 网站多语言建设方案seo外链平台热狗
  • 武汉建设学校网站服务器ip域名解析
  • 免费做耽美小说封面网站2022最新热点事件及点评
  • 安阳网站关键词优化手机游戏性能优化软件
  • 大航母网站建设怎么样百度一下你就知道官页
  • 杭州外贸网站建设seo排名优化是什么
  • 最专业网站建设哪家好今天新闻
  • 网站设计策划案seo学校培训班
  • 搜狐快站绑定未备案的网站域名吗友情链接的网站图片
  • 做网站的方法及措施广州引流推广公司
  • 公司网站开发软件北京seo管理
  • 开网站做代发长沙网站制作公司哪家好
  • 百度提交网站入口网址网站seo优化
  • 创世网络网站建设怎么样百度怎么做关键词优化