Conditional Style from the POI Name ?

Map Plus helps, usage, issues, bug report, downloads...

Conditional Style from the POI Name ?

帖子Chris » 2019-09-14 9:54

Hey Developers or Supporters,

i wanna ask how i can create a Conditional Style with a Icon that respects the Name of the Item.
How do i access the System Name Variable Name to create a Conditional Style ?

For now i create a Feature Class with a conditional style
[:Name].contains('Turn Left')
Style
Icon Image Arrow left
[:Name].contains('Turn Right')
Style
Icon Image Arrow right

I selected all POI´s that should change to the Arrow -> Apply Feature Class, and choose the created Feature Class each time to change the Icons at once.
But that never happens, they stay at the same icon, at the same size i import them.
i tried also tried the Names Title and Label without colon and with.


How i can see a list of The System Names to access it for my task ?
And can someone help me how to Create the Feature Class i´m looking for.

Thanks ! :)
头像
Chris
★★
 
帖子: 4
注册: 2019-09-14 9:41

Re: Conditional Style from the POI Name ?

帖子Zax » 2020-02-29 6:56

The system name could be referred by [:name], notice the first char is lowercase.

Actually there is a list for all system var in the following document:
http://duweis.com/support/viewdoc.html? ... k=030_expr

which contains:

代码: [全选]
[:meters]      //refer to the length of a line in meters.
[:sqmeters]    //refer to the area of a polygon in squre-meters.
[:name]        //refer to title of a feature.
[:classname]   //refer to name of its feature class.
[:guid]        //refer to GUID of a feature.
[:zoom]        //refer to the current zoom level of the map.
[:description] //refer to the subtitle of a feature.
[:flat]        //refer to the formatted (text) latitude of a point.
[:flon]        //refer to the formatted (text) longitude of a point.
[:lat]         //refer to the latitude (number) value of a point.
[:lon]         //refer to the longitude (number) value  of a point.
[:altitude]    //refer to the altitude (number) value of a point.
[:scale]       //refer to the scale of a point.
[:rotate]      //refer to the rotation of a point.
[:PI]          //refer to the math pi (π)
[:E]           //refer to the Euler number
 
Javascript
Zax Zeng
Duwei Technology
头像
Zax
★★★★★
 
帖子: 1208
注册: 2011-07-27 0:54

Re: Conditional Style from the POI Name ?

帖子Chris » 2020-07-05 10:58

Hi Zax,
thanks for Examples.

So i can format about a Name from the Feature,
But i can´t format about a Name from a Point ?

I take a "Trick" to add a customised Property "Title" first and then run the Feature Class "left/right" over it to the the correct Icon for it.

But the next Problem is now, if i search for "left" oder "right" to add the customized Property at once, i doesent find every "left or right" in the Database.
Something it miss here ?

I attached the Photos.


maybe it would be more cool to check the long and lat from a route, and in case of an specified amount of difference it adds "the point before" an direction itself on the route ?
附件
IMG_0779.PNG
IMG_0779.PNG (719.08 KiB) 被浏览 1083 次
IMG_0778.PNG
IMG_0778.PNG (595.57 KiB) 被浏览 1083 次
IMG_0777.PNG
IMG_0777.PNG (574.88 KiB) 被浏览 1083 次
头像
Chris
★★
 
帖子: 4
注册: 2019-09-14 9:41

Re: Conditional Style from the POI Name ?

帖子Zax » 2020-07-06 4:09

Feature classes only applicable to object that could be listed in User Data as a single item, with compatible geometry type.

Direction route is a special object which is originally designed only for common map users, which mixed diff geometry of points(steps) and lines(route) together and treated as a single item. Those step features of a route are managed internally which could not be affected by a feature class.

If you want conditional style be applied to route steps, you have to make new drop points, snap them to turning points on route, save and apply with proper feature class. You can put these new points and your route in a same folder so that using the folder to control their visibility in a bulk.

We could not provide any significant update to the app because the dev team is already dismissed, would bug fixes would be release in the future.
Zax Zeng
Duwei Technology
头像
Zax
★★★★★
 
帖子: 1208
注册: 2011-07-27 0:54

Re: Conditional Style from the POI Name ?

帖子Chris » 2020-07-06 15:45

so far it´s the best GPX Organizer App i can use on my iPhone.
No crashes, no sluggish App interface.
You all have done a really great Job !
Komoot is a good App too, BUT, i never have the flexibility of your App to edit or even batch edit, import icons, travel to photos .... (-:
i´m excited to see Updates in the Future.

it would be nice to see a Route/Track elevation Diagramm to cut out, or even add Mountains.

greetings
Christian
头像
Chris
★★
 
帖子: 4
注册: 2019-09-14 9:41


回到 Map Plus - Forums

cron