I want to define parameters

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Expand view Topic review: I want to define parameters

Re: I want to define parameters

by baegas » Wed Jun 02, 2021 1:51 am

Hello

thanks for the kind reply
It's a pity that it's not supported, but I think it's okay to use static parameters.
Thank you again
Have a nice day

Re: I want to define parameters

by Psyberia-Support » Tue Jun 01, 2021 2:41 pm

Hi,
If I correctly understand, you want to define a parameter, using the text that come from a remote URL?
Right now this is not possible.
I'm not sure if I will be able to work on this, this is very specific, I guess for this map only. When does the app is supposed to update the parameter value?

I think the solution using what is existing is to use a static parameter at the start of the file (before the first <source>):

Code: Select all

<param name="kb-bbb-vv">12345789</param>
Then use is like this in your map:

Code: Select all

<![CDATA[http://api.mapbox.com/styles/v1/mapbox/light-v10/{$param:kb-bbb-vv}/{z}/{x}/{y}]]>
And once in a while edit the variable value with your text editor.

I want to define parameters

by baegas » Sat May 29, 2021 11:27 am

Hello!

Code: Select all

<![CDATA[http://api.mapbox.com/styles/v1/mapbox/light-v10/12345789/{z}/{x}/{y}]]>
If there is an online map like the one above, the number 123456789 changes once a month.

The URL that changes once a month is

Code: Select all

http://api.mapbox.com/styles/v1/mapbox/@2x.png?mt=kb.bbb.vv
If it's like this

Code: Select all

<![CDATA[http://api.mapbox.com/styles/v1/mapbox/light-v10/???/{z}/{x}/{y}]]>
/???/ How can I define this part as parameters?

Top