Skip to content
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

Default profile to line feature #11

Open
MarkCooperSDC opened this issue Apr 4, 2017 · 4 comments
Open

Default profile to line feature #11

MarkCooperSDC opened this issue Apr 4, 2017 · 4 comments

Comments

@MarkCooperSDC
Copy link

Hi

I don't know if this is the correct place to post this, but is there a way to get the elevation profile to be produced by default based on a line feature within the map and disable the ability to retrieve a profile based on a drawn line?

Thanks
Mark

@jgravois
Copy link

jgravois commented Apr 4, 2017

the sketched line geometry is passed along to be used to generate an elevation profile here.

it'd be up to you to define a hardcoded line feature of your own instead. you can find an example of programmatically created graphics below.

https://developers.arcgis.com/javascript/3/jssamples/toolbar_edit.html

@kellyhutchins
Copy link
Member

We should add an option that allows you to hide the draw tool to the configuration panel. I'll do that for the next release. For now you can paste the following css into the 'Custom Css' box on the Theme tab in the configuration panel to hide the draw tool.
.icon-draw{display:none}

You can also setup the app so a line is selected by default using the options on the 'Custom Url Parameter' tab to define a url parm that lets you select the feature to show on startup. In this example I setup a url param called name and pointed it to the name field in the trails feature layer. Then I append the trail name I want to display to the app url like this:
http://www.arcgis.com/apps/Profile/index.html?appid=fac840867e5c41699ce73ac94fccf169&name=Loowit%20trail

@MarkCooperSDC
Copy link
Author

Thank you - that really helps.

I dont suppose there is an easy way to add a logo to the app is there?

@kellyhutchins
Copy link
Member

@MarkCooperSDC you'd need to download and host the app locally and add a logo. Where would you want the logo to display?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants