chaloum
 XMod All-Star Posts: 169
 www.edmedia.com.au
 |
| 8/19/2008 2:59 AM |
|
mcotterill you will find the info you need here http://www.roadsidestalls.com/SystemAdmin/MapDev/tabid/210/Default.aspx |
|
EDMEDiA Australia - - www.edmedia.com.au eLearning and Organisational Development |
|
|
mcotterill
 XMod All-Star Posts: 113
 www.crackerbrandware.com
 |
| 8/19/2008 3:35 AM |
|
Thanks Chaloum. Will investigate directly. M |
|
|
|
|
wassis
 XMod Newcomer Posts: 1

 |
| 8/25/2008 10:05 PM |
|
Hi! I have problems with the markers not showing on the text/html map redirect, it show at form entry any info my code for the text/html is flollow <p> <meta http-equiv="content-type" content="text/html; charset=utf-8" /></p> <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA2p4DoYFBkn2nFUIUmXw7rxTjdlVbVwUuqJ7rZwt_CM6nY7PvhxQ6-o3xKOvSCjARz6Ft7D5K3ZccLA" type="text/javascript"></script><script type="text/javascript"> //<![CDATA[ var map = null; var geocoder = null; var x=new Array() var y=new Array() var d=new Array() var myGclick = [] var gmarkers = [] // This function picks up the click and opens the corresponding info window myGclick = function myGclick(i) { GEvent.trigger(gmarkers[i], "click"); } oldLoad = window.onload; window.onload = function load(){ if(oldLoad){ oldLoad(); } if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(40, -98), 3); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.addControl(new GOverviewMapControl()); map.enableGoogleBar(); // Creates a marker at the given point with the given number label function createMarker(point, d) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(d); }); // save the info we need to use later for the side_bar gmarkers[i] = marker; return marker; } for (var i = 0; i < 999; i++) { var point = new GLatLng(x[i], y[i]); if ((x[i] == undefined)){break} map.addOverlay(createMarker(point, d[i])); } } } //]]> </script> <div id="map" style="width: 500px; height: 400px"> </div> |
|
|
|
|
fatgeorge
 XMod All-Star Posts: 676
 www.fatgeorge.co.uk UK
 |
| 9/26/2008 9:20 AM |
|
Hi Scott, I noticed that on your Marina Finder you have categories for your entries which have different coloured markers on the map, I wondered if you would be prepared to share how you did this in XMod. cheers |
|
we don't make XMod, we make it better! |
|
|
captscott019
 XMod All-Star Posts: 902
 www.marinapal.com Jersey City, NJ (for the summer)
 |
| 9/26/2008 9:39 AM |
|
Hi FG, The Marina Finder actually uses "GoMap" by Bi4ce. I believe the DNN Map functions similarly. I am however using data entered using XMod. My example code could be altered to use "Custom Icons". You can find an excellent tutorial here... http://code.google.com/apis/maps/articles/customicons.html |
|
Scott Jennings - www.marinapal.com
"Personally I'm always ready to learn, although I do not always like being taught." - Sir Winston Churchill |
|
|
nunami
 XMod Rookie Posts: 6

 |
| 10/14/2008 10:03 PM |
|
Hi, I think what you've made is brilliant! I'm new to DNN and XMod and was hoping you could help me through some of first steps of getting the code to work. I have read through this thread along with trying out several ways of getting the code to work but I'm really not sure what I'm doing. I've been trying to add the geocoder_listview (along with the other code you have available). Do I add all the code to a text/html box or do I add it as an XMod template or XMod form? Is there a really straightforward set of instructions that I can follow for adding the XMap to DNN? Thanks and Regards, nunami |
|
|
|
|
captscott019
 XMod All-Star Posts: 902
 www.marinapal.com Jersey City, NJ (for the summer)
 |
| 10/14/2008 10:31 PM |
|
Add this code using the XMod Formview. http://www.marinapal.com/portals/0/geocoder_form_code.txt Make sure to add your Google API key and change the redirect to the page that has the listview. On a different page, add this as a XMod listview template, usually on the right or left. http://www.marinapal.com/portals/0/XMap-with-clickable-sidebar.txt Again, make sure to add your Google API key. Add a text/html module to the center and add this code... [div id="map" style="width: 500px; height: 400px" ][/div] Replace [ and ] with < and > The map dimensions can be changed to fit your needs. |
|
Scott Jennings - www.marinapal.com
"Personally I'm always ready to learn, although I do not always like being taught." - Sir Winston Churchill |
|
|
nunami
 XMod Rookie Posts: 6

 |
| 10/15/2008 12:34 AM |
|
Thanks for your fast reply Scott! I'll give it go and let you know how it goes. |
|
|
|
|
nunami
 XMod Rookie Posts: 6

 |
| 11/11/2008 6:48 PM |
|
It's taken me a month to reply but I did get the XMaps code working. The XMod Form module really helped me to work out how XMod works and the relationship between the forms and templates and how to get what i want out of it. Thanks for your comments and help Scott! |
|
|
|
|