Google Map Question

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
12/29/2008 5:29:45 AM
Gravatar
Total Posts 118

Google Map Question

Is there a way to put multiple locations onto a google map ?

Neil

12/29/2008 6:46:45 AM
Gravatar
Total Posts 18439

Re: Google Map Question

Not currently, its a pretty simple feature. I think one could clone it and then extend it to add this functionality. There is not much to this feature if you look at the code.

I've got a plan to make a feature to plot site members/visitors on a map based on calculating approximate location from their ip address, just haven't had time for it. Every point has to be geocoded to a long and lat to show it on the map. The current feature passes the location to google first to geo code it then shows it on the map using long and lat. I think with a lot of locations this would be unwieldy and you would need to geocode ahead of time and store the long and lat in the db with the location info.

Best,

Joe

12/29/2008 7:00:27 AM
Gravatar
Total Posts 118

Re: Google Map Question

What I was thinking of is actually being able to pass a list of Shops complete with addresses so that all of the shop locations appear on the map

 

Neil

12/29/2008 7:12:09 AM
Gravatar
Total Posts 18439

Re: Google Map Question

It could be implemented with a short list of shops by geocoding on the fly with javascript calling the google web service, but for a long list I think it would be slow and unwieldy. The javascript geocoding is not complicated code though, if you look in /ClientScript/google/mojomaputils.js you'll see the relevant javascript used in the current google map feature and that may give the idea of what would be needed to show more locations.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.