planetfederal / sdk-apps

Base template for boundless sdk
Apache License 2.0
13 stars 14 forks source link

Production version #28

Open jasminepoly opened 6 years ago

jasminepoly commented 6 years ago

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

bartvde commented 6 years ago

npm run build or npm run package

jasminepoly commented 6 years ago

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 commented 6 years ago

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

jasminepoly commented 6 years ago

Yes

jasminepoly commented 6 years ago

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 commented 6 years ago

yes it's linked to several conditions

jasminepoly commented 6 years ago

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 commented 6 years ago

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

jasminepoly commented 6 years ago

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.