开发者

How to make a Google mashup, allowing multiple users to pinpoint multiple locations on a map?

开发者 https://www.devze.com 2023-01-14 23:50 出处:网络
I need some inputs on how to show a map (public to all) and allow any user (whose email I should be able t开发者_C百科o track) to click several points on the map and make appropriate markers (it shoul

I need some inputs on how to show a map (public to all) and allow any user (whose email I should be able t开发者_C百科o track) to click several points on the map and make appropriate markers (it should just be visible as a point, nothing special). Other users SHOULD see those points as well. I should be able to access data on the backend as to who selected what point.

Any code pointers?


Have a look at this example in the google maps API here to get the basic feel of how to play with markers.

Basically I would bind a mouse click event handler to the gmap, then use this to create a new marker at that position and add it to the map using map.addOverlay(marker).

You will then need some sort of server side script that you can pass the marker information to via an ajax call.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号