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

Production version #28

Open
jasminepoly opened this issue Apr 19, 2018 · 9 comments
Open

Production version #28

jasminepoly opened this issue Apr 19, 2018 · 9 comments

Comments

@jasminepoly
Copy link

How can I generate a production version of the application that need access to Geoserver ?

@bartvde
Copy link
Contributor

bartvde commented Apr 20, 2018

npm run build or npm run package

@jasminepoly
Copy link
Author

The generated application doesn't contain the add button, can't see where is the problem.
The first image of the debug version
image
And the second when I build it
image

@bartvde
Copy link
Contributor

bartvde commented Apr 20, 2018

is your application on the same host and port as geoserver?

@jasminepoly
Copy link
Author

Yes

@jasminepoly
Copy link
Author

Could it be a problem of the FlatButton? I don't see the button in the demo either.
Or it's linked to a condition?

@bartvde
Copy link
Contributor

bartvde commented Apr 20, 2018

yes it's linked to several conditions

@jasminepoly
Copy link
Author

which ones?
Also when I try to log in it connects to address:8080/geoserver/app/api/Login which doesn't exist in geoserver? Is it something I am doing wrong?
I am new to this syntax, any help will be appreciated.

@bartvde
Copy link
Contributor

bartvde commented Apr 20, 2018

the login extension is only provided in OpenGeo / Boundless Suite version of GeoServer

@jasminepoly
Copy link
Author

jasminepoly commented Apr 23, 2018

The only way I find to see the add button after building the app is by changing its place (I put this after the header).

<div id='layerlist'><LayerList  allowEditing={true} allowFiltering={true}
            addLayer={{ icon:<MdAddBox />,allowUserInput: true, sources: [{url: '/geoserver/wms', type: 'WMS', title: 'Local GeoServer'}]}} map={map} /></div>

But the problem now is that it doesn't take into consideration the icon I put, it gives by default this
image
Also, Is it possible to use this app on phone?
Thanks.

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

2 participants