joomGPStracks

...the GPS extension for Joomla

  • Increase font size
  • Default font size
  • Decrease font size
Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Change track color in map
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Change track color in map
#532
Change track color in map 1 Year, 5 Months ago Karma: 0
Hi,

I am playing around wit Joomla and joomGPStracks.
I am trying to build a page where i can present my tracks and wanted to know if it is possible to change the color of the track in the map because sometimes the default color is really difficult to see.

How can i change the color? Which file do i have to edit?

thx, Lechi
Lechi
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#538
Re:Change track color in map 1 Year, 5 Months ago Karma: 0
Hi Lechi,

The colour of the track is set in the gpsClass.php file.

This can be found in: yourdomain/components/com_joomgpstracks/helpers/gpsClass.php

The line you need to edit is 596 where you will find a hexdecimal number representing the colour of the polyline.

It is set to #ff0000 by default which is red, you can change this to any colour you want for example #0000ff, which would give you a blue track line.

Hope this is of some use to you...
Ric@rdo
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#542
Re:Change track color in map 1 Year, 5 Months ago Karma: 0
thanks...

i already found it...

would be nice feature for the config...
would also be nice to set weigth and opacity in the config...

perhaps i will try implement this...
Lechi
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#557
Re:Change track color in map 6 Months, 3 Weeks ago Karma: 0
Is it possible to display the track in multiple colors ?
I want to use multiple colors in my track to get an indication of the road quality e.g. Green is good quality, yellow is less quality, red is bad quality and so on
so you can see in the track the condition of the roads it's possible to device the tracks in garmins mapsource into several parts eache have there own color.

hope you can help me with this

kind regards
advanm
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#558
Re:Change track color in map 6 Months, 3 Weeks ago Karma: 0
Is it possible to display the track in multiple colors ?
I want to use multiple colors in my track to get an indication of the road quality e.g. Green is good quality, yellow is less quality, red is bad quality and so on
so you can see in the track the condition of the roads it's possible to device the tracks in garmins mapsource into several parts eache have there own color.

hope you can help me with this

kind regards
advanm
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Online Users

None

Newsletter











drink-cultural