如何在我的网站上提供位置 [英] how to give location in my website
本文介绍了如何在我的网站上提供位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的网站上使用此代码进行谷歌地图。
但它没有给出位置点。
I am using this code for google map in my website.
but it does not give location point.
<script>
function initialize() {
var mapProp = {
center: new google.maps.LatLng(18.511343628, 73.8531372),
zoom: 11,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var marker = new google.maps.Marker;
var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
}
google.maps.event.addDomListener(window, 'load', initialize);
mapProp.open(map, marker);
window.onload = initialize;
</script>
推荐答案
希望这会有所帮助&解决您的疑问。
HTML,ASP.NET,PHP,JSP等中的Google Maps轻松实现 [ ^ ]
显示你的Google地图上使用C#和JavaScript的数据 [ ^ ]
Hi, hope this will help & solve your query.
Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease[^]
Show Your Data on Google Map using C# and JavaScript[^]
这篇关于如何在我的网站上提供位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文