DCSportbikes.net  
» Help Support .NET!
DCSportbikes Premier Membership for 25$ per year. Discounts! Click here for full information.

Now available in the .NET Shop:



Get your DCSBN Gear!
» Shoutbox
Sorry, only registered users have the ability to use our real-time shoutbox to chat with other members.

Register now, it's free!
» Online Users: 561
0 members and 561 guests
No Members online
Most users ever online was 4,519, September 2, 2015 at 03:26 AM.
Go Back   DCSportbikes.net > Sportbike Forums > Rides and Events

Reply
LinkBack Thread Tools
Use Google Maps to Plan/Show Ride Routes
Unread
  (#1)
GP Champ
 
ThrustinJZX6's Avatar
 
Posts: 2,014
Join Date: October 15, 2003
Location: I should have my own website
Thumbs up Use Google Maps to Plan/Show Ride Routes - April 11, 2006, 01:22 PM

http://donkeymagic.co.uk/googlemap/

It doesn't get any easier than this.

- Locate your area
- click the "Activate" check box
- click your route point in the map, add some info, hit "Add Marker"
- repeat for more markers.

Then copy and paste the generated URL. Here is a test.

Now we just need a way to publish HTML on the site...... Rob?

---------------------------------------------------------------------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Simple Google map</title>
<!-- //Change the following line to use your own key available from http://www.google.com/apis/maps/signup.html -->
<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAARKYMX3qABRwgBGTOLfvd gBRQROPmUrjXRMwOo3NMUyVtZKTQsxSkUyaxYWGiMMNWgKp0HL mZ8jT56g" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
// Google Map Maker script v.1.1
// (c) 2006 Richard Stephenson http://www.donkeymagic.co.uk
// Email: donkeymagic@gmail.com
// Documentation available at http://www.donkeymagic.co.uk/googlemap/
var map;
var icon0;
var newpoints = new Array();

function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function'){
window.onload = func
} else {
window.onload = function() {
oldonload();
func();
}
}
}

addLoadEvent(loadMap);
addLoadEvent(addPoints);

function loadMap() {
map = new GMap(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());

map.centerAndZoom(new GPoint( -78.81179809570312, 38.430463025162666), 5);

icon0 = new GIcon();
icon0.image = "http://www.google.com/mapfiles/marker.png";
icon0.shadow = "http://www.google.com/mapfiles/shadow50.png";
icon0.iconSize = new GSize(20, 34);
icon0.shadowSize = new GSize(37, 34);
icon0.iconAnchor = new GPoint(9, 34);
icon0.infoWindowAnchor = new GPoint(9, 2);
icon0.infoShadowAnchor = new GPoint(18, 25);
}

function addPoints() {

newpoints[0] = new Array(-78.85076522827148, 38.43785867170407, icon0, 'Starting Point', '<div id="popup">Starting PointA 20 minute ride in the country.</div>');
newpoints[1] = new Array(-78.85273933410645, 38.44619467401461, icon0, 'Vine St', '<div id="popup">Turn right</div>');
newpoints[2] = new Array(-78.85020732879639, 38.45130336086328, icon0, 'Rt 718', '<div id="popup">Turn right</div>');
newpoints[3] = new Array(-78.79325866699219, 38.45368953145413, icon0, '717', '<div id="popup">Turn left</div>');
newpoints[4] = new Array(-78.7869930267334, 38.46118361042065, icon0, 'Minie Ball Ln', '<div id="popup">Turn right</div>');
newpoints[5] = new Array(-78.76755237579346, 38.463401439646816, icon0, 'rt 620', '<div id="popup">Turn Right</div>');
newpoints[6] = new Array(-78.80177736282349, 38.414845637868154, icon0, 'Rt 620', '<div id="popup">Continue on 620 left across the tracks. This heads back to Rt. 33</div>');
newpoints[7] = new Array(-78.81051063537598, 38.392666173726205, icon0, 'Rt 33', '<div id="popup">Head right back into Harrisonburg...Or left, east back over 33 to get back to NOVA</div>');

for(var i = 0; i < newpoints.length; i++) {

var point = new GPoint(newpoints[i][0],newpoints[i][1]);

//Add overlay to map
var popuphtml = newpoints[i][4] ;
var marker = createMarker(point,newpoints[i][2],popuphtml);
map.addOverlay(marker);
}
}

function createMarker(point, icon, popuphtml) {
var marker = new GMarker(point, icon);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(popuphtml);
});
return marker;
}

//]]>
</script>

<style>
div#popup {
background:#EFEFEF;
border:1px solid #999999;
margin:0px;
padding:7px;
width:270px;
}
</style>
</head>
<body>
<div id="map" style="width:600px;height:450px"></div>
</body>
</html>


'00 Kawasaki Ninja ZX6-R
'03 Honda XR100R
Xbox: ThrustinJ
  Send a message via AIM to Send a message via AIM to ThrustinJZX6  
Reply With Quote
Unread
  (#2)
rdg
best avatar in the biz
 
rdg's Avatar
 
Posts: 2,097
Join Date: April 19, 2005
Location: me, the bike, or the crap that broke off?
April 11, 2006, 01:25 PM

Quote:
Originally Posted by ThrustinJZX6
Now we just need a way to publish HTML on the site...... Rob?
yea, Rob, what this site needs is a gaping security hole. could you get on that?
  Send a message via AIM to  
Reply With Quote
Unread
  (#3)
WPNR
 
Phife's Avatar
 
Posts: 3,490
Join Date: April 29, 2003
Location: Haymarket Va.
April 11, 2006, 01:30 PM

Good idea, however, we dont need popo and knowing where we are going to be riding. Just a thought.


-------------------------------------------------------------
ME!!!
http://www.dcsportbikes.net/photoplo...2_Yamahar6.jpg
  Send a message via AIM to Send a message via AIM to Phife  
Reply With Quote
Unread
  (#4)
Pleased to meet me
 
nunyadambusiness's Avatar
 
Posts: 5,227
Join Date: April 4, 2003
Location: moon
April 11, 2006, 01:31 PM

Use google earth to see it in 3d.
  Send a message via AIM to  
Reply With Quote
Unread
  (#5)
ATTN INVESTORS!
 
rekoniz's Avatar
 
Posts: 2,473
Join Date: August 28, 2004
Location: DOPE SPACE NINE
April 11, 2006, 02:00 PM

I won't post my routes except when I'm giving ride reports. You wanna know where I ride, you gotta come with me to find out. I haven't refused to ride with anyone....yet.




  Send a message via AIM to Send a message via AIM to rekoniz  
Reply With Quote
Unread
  (#6)
Site ADMIN
 
spud's Avatar
 
Posts: 16,846
Join Date: September 30, 2002
Location: Lake Ridge
April 11, 2006, 02:11 PM

Quote:
Originally Posted by Phife03R6
Good idea, however, we dont need popo and knowing where we are going to be riding. Just a thought.



Cause those stings make the news all the time.


This post was prepared as a service to the DCSportbikes.net community. Neither the DCSportbikes.net ADMINS nor any of the moderators, makes any warranty, expressed or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, product, link, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation, or favoring by DCSportbikes.net. The opinions of this author expressed herein do not necessarily state or reflect those of the DCSportbikes.net community, and shall not be used for advertising or product endorsement purposes.
__________________________________________________ ________


Alex
13 Honda Fury
  Facebook Page Send a message via AIM to Send a message via AIM to spud Send a message via MSN to spud  
Reply With Quote
Unread
  (#7)
Typical Stripper
 
Nudist's Avatar
 
Posts: 16,605
Join Date: May 27, 2005
Location: Between old and slow
April 11, 2006, 02:25 PM

Quote:
Originally Posted by rekoniz
I won't post my routes except when I'm giving ride reports. You wanna know where I ride, you gotta come with me to find out. I haven't refused to ride with anyone....yet.

You wont ride with me Blinky5000!!!!



Back to the topic.... even my simple rides are made up on the fly... I will just post general areas, not a route.


Nate CCS/ASRA #29 - www.nudebikesracing.com - 2012 MARRC AM Racer of the Year

Ticket2Speed, RnR Cycles, Twin Works Factory, Scorpion Helmets, Pro Speed Racing Apparel, Vortex, DC-Moto.net/Amsoil, Dunlop, Sharkskinz, DCSportbikes.net
  Facebook Page Send a message via AIM to  
Reply With Quote
Unread
  (#8)
Happiness Consultant
 
EduardoSuave's Avatar
 
Posts: 7,231
Join Date: August 31, 2003
Location: The LC
April 11, 2006, 04:55 PM

Pretty cool Justin - this would be great for the newbie rides and the memorial rides.

so many glass half empty people


DBR
#135, #47, Vega
--
"Never contract friendship with a man that is not better than thyself." - Confucius

Will pay to see this
whatever henry's name is these days: jason, seriously, im going to kick your face in when I get back
  Send a message via AIM to Send a message via AIM to EduardoSuave  
Reply With Quote
Unread
  (#9)
Site Owner
 
ClemsonJeeper's Avatar
 
Posts: 12,971
Join Date: March 9, 2004
Location: CashBurn, VA
April 11, 2006, 05:50 PM

Oooh, this could be a cool feature for Premier Members...

I think I'll get on that!


(O|||||||O) and (0OO\(||||)(||||)/OO0)

Help support DCSportbikes.net! Become a Premier Member today!

Katie #135.



Nudist: If Ben isnt still riding me, then I need it
B: that sounds odd
  Facebook Page Send a message via AIM to Send a message via AIM to ClemsonJeeper  
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBadvanced CMPS v3.2.3


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0
vBulletin Skin developed by: vBStyles.com
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest 2002-2010 by DCSportbikes.net. DCSportbikes.net is owned by End of Time Studios, LLC.