Open jasminepoly opened 6 years ago
npm run build or npm run package
The generated application doesn't contain the add button, can't see where is the problem. The first image of the debug version And the second when I build it
is your application on the same host and port as geoserver?
Yes
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?
yes it's linked to several conditions
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.
the login extension is only provided in OpenGeo / Boundless Suite version of GeoServer
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 Also, Is it possible to use this app on phone? Thanks.
How can I generate a production version of the application that need access to Geoserver ?