更改标记位置而不刷新浏览器? [英] Change markers location without refresh browser ?

查看:102
本文介绍了更改标记位置而不刷新浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好所有


$ b $使用数据库表中的javascript在Google地图api上加载标记位置,

如何在不刷新所有内容的情况下刷新位置页面?

任何想法请求



我尝试过:



........................................... .................................................. 。

hello all

i load marker location on google map api using javascript from database table ,
how can i refresh location without refresh all page ?
any idea pleas

What I have tried:

..............................................................................................

推荐答案

在没有看到任何代码的情况下,我无法提供新代码;我只能告诉你我该怎么做。



1.为Map Markers系列定义一个全局数组。

2。有一个LoadMarkers函数来加载该集合并在地图上显示它们

3.有一个ClearMarkers函数从地图和集合中删除标记

4.有一个文档.Ready / OnLoad调用LoadMarkers()

5.定义一个SetInternal来调用ClearMarkers()然后调用LoadMarkers()
Without seeing any of your code I cannot provide new code; I can only tell you how I would do it.

1. Have a global array defined for the Map Markers collection.
2. Have a LoadMarkers function to load that collection and display them on the map
3. Have a ClearMarkers function to remove the markers from the map and collection
4. Have a Document.Ready/OnLoad call to LoadMarkers()
5. Define a SetInternal to call ClearMarkers() and then LoadMarkers()


这篇关于更改标记位置而不刷新浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆