-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different styled lines for different link types on maps #18
Comments
The current mapping shows it as per the node "status", but I can see the proposed method being of value also. I also agree to these being configurable. FYI @MDE186. its currently found in
and a bit further down the link colours.
Note: WAFN use a modified red as above rather than the #ff0000 in the original code, which was chosen for its readability. |
@spinza can you expand on what "Better links" are classified as? I presume its not a measurement of signal quality. |
Our colours were/will be based on the link protocol:
They will have different colours/thickness. Obviously most of these are wireless though we have some nodes connected via ethernet (that are very close to each other). |
ahh. nice one! JSON data for the query is /wind/index.php/map/json?node=0&filter=p2p,ap,client you'll need to add in the link info. in the following file. |
hrmm .. one question. where do you record that information in WiND? The closest I can see is "link type" |
Under edit link: |
ahh yes. I'd looked at a client link yesterday, whereas it only shows as an option on the AP side. |
Made lots of progress. Question @spinza does the current ctwug database have a 'protocol' column under nodes? |
@MDE186 you should design based on the database here. Specifically this: Our live database is probably not 100% match to this though. But we need to fix [our live] database if you make the changes. I can't look now but our live database should have protocol on the links table. I think we may need to fix the names to be as per the current scheme.sql though. |
Its all good...found what I was looking for. |
Cool. How is that implemented? Is it a config setting? I think a config setting based on the link protocols with thickness, colour On Wed, 24 Feb 2016 at 18:40 MDE186 [email protected] wrote:
|
looking great. |
At the moment its just hard coded. I'll look at implementing it into the db and also changeable via the admin panel. |
Sorry its taking so long...can only really work once the pregnant wife and 2yr old have gone to bed :) |
Seriously. No stress dude. Family first always. |
👍 |
@MDE186 have you had a chance to look at this while awake at odd hours? 🍼 |
Hey, Unfortunately not. Not sure when I'll have some extra time. I can send
|
Got @MDE186 's code. I can implement it but it's dependent on having a set protocol list in the protocols table. He has a if else if else hard coded. I think I will change his way of doing things by adding a colour field to the protocol table so we can simply edit the colour in the database. If no colour is set it will default to the blue it uses currently. Happy with that approach @jammin84 ? |
Hi @spinza Looking at the schema.sql file. It appears that there is no "protocol table", it is just a "enum" list within the table "links", so while i like the "adding a row" idea, the current db design doesn't allow for it. There is also no admin interface in WiND for changing these either. So even changing the enum list is purely db. I think it best if its stored in either:
Then whichever option you just compare the link type if it is in the array or default back to blue as you've mentioned
|
Doh thought it was a table. On Mon, 27 Jun 2016, 04:30 jammin84 [email protected] wrote:
|
All sounds good. @spinza I just pulled the code from the old WIND and made it work with the new. |
Our members loved this about our old wind. We had different styled lines for our map based on the link type. Better links being more prominent.
Ideally the style should be configurable in the config/config.php.
@MDE186 is going to look at this for us.
The text was updated successfully, but these errors were encountered: