Google Route Map v.1

Started by Mick., April 25, 2010, 01:06:39 PM

Previous topic - Next topic

Arantor

Subs.php edit should really be tweaked slightly.

Code (find) Select
'show' => $modSettings['googleRouteMapsEnable'] && allowedTo('googleRouteMap_view'),

Code (replace) Select
'show' => !empty($modSettings['googleRouteMapsEnable']) && allowedTo('googleRouteMap_view'),

And yes, Brack, the same change will fix this error.

TheListener

Sorted.

Seems strange how the Route Map link in the configuations shows twice though.

Above Miscellaneous link and within the miscellaneous link.

Mick.

Issue with Internet Explorer browser map not loading, now fixed.  ;)

New Zip loaded.   Tested on IE & FF.

Uninstall old Zip and delete from mod list in admin.  Upload new Zip.

Bruno36

Bruno36 the French
SMF 2.0.9

Mick.

Quote from: Bruno36 on April 27, 2010, 04:59:51 PM
Thank you very much :D

No problem man.   Thanx for letting me know. ;)

More-to-life

Great MOD ;D

Can maybe a pin system so you can drag & drop a pin to your start & finish position

I think this is possible in google maps?

UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

Mick.

Quote from: welshbikers on April 28, 2010, 02:39:33 PM
Great MOD ;D

Can maybe a pin system so you can drag & drop a pin to your start & finish position

I think this is possible in google maps?




Hmmm....... good idea.  Lets me see what i can dig up.

Mick.

Did you know?

If you have a function, club meet or any gatherings, you can edit the address of the location in the language file:

$txt['toAddress'] = '3666 Madison Ave, San Diego, CA 92116';

Just add the venue's address there and users all they have to do is simply put their own location to get directions to the venue.

You can change this every time.

I may add a functionality in admin so you can edit the "from" and "to" instead of doing this in the files.

Mick.

Quote from: welshbikers on April 28, 2010, 02:39:33 PM
Great MOD ;D

Can maybe a pin system so you can drag & drop a pin to your start & finish position

I think this is possible in google maps?




How about this for starters? ;)   I added the drag n' drop function.

http://www.bluedevilcustoms.com/devsite/index.php

imrich

This is a very nice mod!

Your drag and drop looks very nice also.

I'm torn between having the text boxes change to where the drag-n-drop moves go, or to leave them as a 'default' location.

Thanks for your mod!

Mick.

I think im going to add a scroll bar to the directions.  Im not liking the mile high page.   I wonder if there will be printing issues.   Hmmm...

kizer

Is there a possiblity of say a few of these to work? I run a Jeep website and sometimes we will have 3 or 4 outings scheduled ahead of time and sometimes members will pick and choose the one they want to go on and if there was a
http://www.domainname/forum/map?id=1 for say trip one
http://www.domainname/forum/map?id=2 for say trip two
http://www.domainname/forum/map?id=3 for say trip three

Of course my URLS are totally made up, but I hope you get the idea.

As for my print request I'd be totally happy with just a plain text print out.
11.9 mi (about 20 mins)
1.   Head northwest on Arguello St toward Howland St   499 ft
2.   Take the 2nd right onto Whipple Ave   0.3 mi
3.   Merge onto US-101 S via the ramp to San Jose   6.8 mi
4.   Take the Embarcadero Rd/Oregon Expy exit   0.2 mi
5.   Keep left at the fork, follow signs for Oregon Expy   0.4 mi
6.   Slight left at Oregon Expy   1.9 mi
7.   Continue onto Page Mill Rd   1.4 mi
8.   Turn left at Foothill Expy   0.6 mi
9.   Make a U-turn at Hillview Ave   0.4 mi
Own a Jeep? Links4Jeeps.com

More-to-life

Looks good BD ;D thank you

Also Kizer has some good ideas but you might be busy

Fair play to you though you bring some really good MODS to the forum ;D
UK Bike Forum - The biggest motorcycle forum magazine in Wales UK.
Gear Up Magazine - Gear Up Motorcycle Magazine.
United Bikers UK Motorcycle Forum - A Brand New UK Bike Forum.
Used Cars South Wales - Search For Your Next Used Car In Laleston, Bridgend, South Wales.
Bikers Of Wales Motorcycle Website - Motorbike Info
Honda - Honda UK

madfitz

#33
Using SMF 2.0 RC3 on Firefox 3.6.3 I get a blank page. Well I actually get the to and from boxes... everything above 'Formatted Directions' and 'Map'. The space below that text is blank and when I hit the 'Get Directions!' button I'm pushed back to the board index.

Any ideas what could be causing this?

Edit: OK, I see it's only working with the SMF default theme? How do I get this running with a custom theme?

Mick.

Quote from: madfitz on April 30, 2010, 07:19:33 AM
Using SMF 2.0 RC3 on Firefox 3.6.3 I get a blank page. Well I actually get the to and from boxes... everything above 'Formatted Directions' and 'Map'. The space below that text is blank and when I hit the 'Get Directions!' button I'm pushed back to the board index.

Any ideas what could be causing this?

Edit: OK, I see it's only working with the SMF default theme? How do I get this running with a custom theme?
Yon need to edit index.template.php in the custom theme.

Mick.


Shades.

ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Mick.

Quote from: welshbikers on April 28, 2010, 02:39:33 PM
Great MOD ;D

Can maybe a pin system so you can drag & drop a pin to your start & finish position

I think this is possible in google maps?



After a deep thought, i didnt dig the drag n' drop thing.  Reason is, when picking up the marker and dropping it, it drops it to a non specific place. Its like pinning the tail to the donkey blind folded.  lol.

I am considering on adding waypoints but i havent looked into it yet.


Quote from: kizer on April 28, 2010, 11:42:58 PM
Is there a possiblity of say a few of these to work? I run a Jeep website and sometimes we will have 3 or 4 outings scheduled ahead of time and sometimes members will pick and choose the one they want to go on and if there was a
http://www.domainname/forum/map?id=1 for say trip one
http://www.domainname/forum/map?id=2 for say trip two
http://www.domainname/forum/map?id=3 for say trip three

Its not impossible but it will require a lot more lines to code for that.....im not saying im not doing it tho', just need to research more. In the mean time i can post a quick html map for you if interested.  Manually you would need to find the latitude & longitude to find the address and add description of event in a popup balloon when the marker is clicked.  You can have as many as you want with named markers like: a,b,c,d,e, etc.


Quote from: BoZilla on May 05, 2010, 04:47:15 PM
I'm interested! ;)

Cool.  I find it nifty.  I get to look at cities in world i never been to before.


kizer

Sounds like a plan BlueDevil. I know what I asked for would cause more work and it was purely a question of desire over need at the current moment. I figure don't ask, won't get so why not ask. ;)
Own a Jeep? Links4Jeeps.com

jmil

Will this mod work in a 1.1.11 Installation?

Advertisement: