Welcome, Guest
Please Login or Register.    Lost Password?

[SOLVED] Change default location
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: [SOLVED] Change default location
#33
[SOLVED] Change default location 7 Months, 2 Weeks ago  
Hi guys. I just subscribed and downloaded your module and I have to say it is great.

I aim to use it on our new company intranet for our showrooms to plan visits to potential customers.

So I have a couple of questions I really hope you can answer for me.

Firstly, is there a way to get the map to display without a location marker? If not then possibly display with a transparent marker?

Secondly, is there any way to remove the default text in the search and preset the default country location you are in?
e.g. so that the start and finish entries are blank when the map loads and so that you do not have to type the country code at the end of your search term.

Keep up the good work though you are leaps and bounds ahead of the opposition with this one.

Cheers
martin.whitton@ntlworld.com
Fresh Nox
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Oxfordshire UK Birthday: 01/15
Last Edit: 2010/01/23 20:29 By nomad.
The administrator has disabled public write access.
 
#37
Re:Change default location 7 Months, 2 Weeks ago  
Hi Martin and welcome to our forum,

Thank you also for considering the use of our Google Map - Directions module, where you don't have to use messy Google Keys or Lats and Longs to make things work anymore, whew!

Answering your question to, can I turn off markers? Well, yes you can, but with the current version of Google Maps - Directions from Noxidsoft, you will need to make a programmatic edit to the module package files. If you are keen, see below...

Unzip the package using 7zip or WinZIP or similar and open js/*.js meaning all the javascript files under the js folder.

Find the line of code similar to
Code:

var marker = new google.maps.Marker({
and delete to the matching/closing brace for that block of code
Code:

}


Now save it and re-zip the files all back into one package and upload it again.

The easier way to do the above is to use a server-side editor for Joomla like eXtplorer to make the changes.

On your second question, partly, can I restrict a Google map to my own country without adding the country to the end of the search parameter. Yes, see http://code.google.com/apis/maps/documen.../services.html#Types However, our Google map modules are built with generic parameters in mind so that the module relates to many users, and we just haven't added that parameter yet, but maybe in a future version

Darn, I knew that would bite me in the back-side, I will remove the default addressing in future versions But, you can do it for now yourself if you are willing to edit the mod_google_map_v3_directions.xml file at line 101, 143 and 144 assuming you have version 2.0.3.

Hope this helps, though lengthy...
nomad
Administrator
Posts: 25
graph
User Offline Click here to see the profile of this user
Gender: Male Noxidsoft Location: Crows Nest, QLD Birthday: 11/01
Last Edit: 2010/01/23 08:50 By nomad.
The administrator has disabled public write access.
Kind Regards,

Noel M Dixon
www.noxidsoft.com
 
#38
Re:Change default location 7 Months, 2 Weeks ago  
That's fantastic. All credit for the quick reply!

I have now updated my files and its working fine for me.

The only minor niggle left is that it doesn't pick up UK post codes properly but i am sure that is not a module error, more like a google api problem i am sure and will hopefully sort itself in time.

Still, everything is good here now. Cheers
martin.whitton@ntlworld.com
Fresh Nox
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Oxfordshire UK Birthday: 01/15
Last Edit: 2010/01/23 12:15 By martin.whitton@ntlworld.com.
The administrator has disabled public write access.
 
Go to topPage: 1