M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Staff
Posts: 104
Registered: ‎07-07-2016

External call to a Feature Analyzer App with a Geojson file

We are preparing an smart App where feature data is a Geojson url . Our idea is to call the App with Geojson files that have more or less feature instance, but allways same feature structure (otherwise we understand that configuration of smart App would be broken) .

How we can do this external ap call with non-fixed Geojson ????

 

Highlighted
Technical Evangelist
Posts: 25
Registered: ‎05-12-2016

Re: External call to a Feature Analyzer App with a Geojson file

Hi Josep,

 

Totally possible. The first step is creating a view in Feature Analyzer which uses the Online File option to point at your GeoJSON.

 

The GeoJSON must be served from a web server of some kind. There may be some additional requirements like setting up SSL or CORS.

 

For example, The GeoJSON can be served via:

  1. M.App Enterprise SQL Query
  2. Flat file sitting on a web server (which may or may not be updated regularily).
  3. A dynamic service like GeoServer or NodeRED

As long as the schema of your GeoJSON doens't change, you should be good to go.

 

If you need any additional help setting up the Online file link in Feature Analyzer, let me know.

 

Thanks,


Dave

Highlighted
Staff
Posts: 104
Registered: ‎07-07-2016

Re: External call to a Feature Analyzer App with a Geojson file

Dave,

 

In our case we have an application running in a iframe and smartMap should be working on other iframe. Between booth iframes we need  to comunicate  with a Geojson content file (always same structure) . Several users may be working with same application (that content iframe with data management  and iframe with Smart App) and Geojson comunication should be with a temporary file that has a name based on session ID, but allways same fields structure.

 

Can we have an example ??

 

 

Highlighted
Staff
Posts: 1,065
Registered: ‎10-18-2015

Re: External call to a Feature Analyzer App with a Geojson file

Hi Josep,

 

can you please clarify what you need to do? A standard browser App in M.App Enterprise can be already comprised of several panels (of different types) which are basically iframes. If you work within such an app using the M.App Editor you can leverage the JS API provided by the system, so you can exchange messages between panels and do other stuff. 

If you want to include MAE Apps into an external Web Page, then it depends on the specific implementation how to do such a communication. 

 

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial