Skip to Content
author's profile photo Former Member
Former Member

Lumira - enhance Geoanalysis - SDK Question

Hi everybody,

I am trying to extend the Lumira Geocharts. I have a requirement to visualise data that shows movements from one location to another.

Something like in the arcs example of this URL (DataMaps) In this example there are no tooltips and no visualizations about the start and stop location, but it fits my requirements.

With this goal in mind i started to develop a local application that included an topojson lib included. I then saw the vizPacker and the article SAP Lumira - vizPacker from Matt Lloyd. Which helped me a lot. I also read the SAP Lumira SDK Getting Started Guide but i am having troubles how to include other js libraries than the default lumira ones (d3.v2.js, jquery.js, json2.js, require.js and sap.viz.js)

I can include js files in the vizpacker on the HTML page, but those changes won't reflect in my downloadable package 😔

That is my first problem. If i would solve that i could display map data. The problem then would be that i have to provide map data in topojson format.

This leads me to my next step. Why isn't it possible to use the build in Lumira geodata. I found some very large jar files from navteq in the Lumira installation path (com.sap.geo.repository.geometries.navteq.levels012c_3.3.6.r225_v20130418.jar under Desktop\plugins)

but i don't know which component is used. All i know is that the CVOM Library (this equals to the SAPUI5 components ??) is used inside Lumira.

I am actually debugging Lumira (changing SAPLumira.ini and adding -Dhilo.cef.frame.debug=true - thanks again to Matt Lloyd !!) to see what component is used and how to use it in my SDK -bundle.js.

There was also a post from John Mrozek (http://scn.sap.com/community/lumira/blog/2013/06/05/sap-lumira-10-sp11-new-features-at-a-glance-part-2) about the new features in Lumira and he pointed to a (I assume SAP intern wiki: http://viz.dhcp.pgdev.sap.corp/viz/wiki that seems to be no longer available.

If anybody could give me a hint how to solve this issue it would be really great !

If i find anything i would update this thread

Thanks and best regards

Manfred

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2014 at 04:24 PM

    Hi Manfred,

    Good question!

    Here are two ways you could try at your own risk to add in the new DataMaps geo extension.

    You are right that Lumira extensions only allow one JavaScript file today, hopefully one day we will be able to improve that.

    1. Single extension file

    You could try copying the additonal JS source code that you need into your extension file so it is all in one file.

    One thing I was told is to avoid is defining objects using the global namespace (so window.blah) so if the additional JS file does that you may want to tweak the code to avoid that.

    2. Dynamically add the script at runtime - not officially supported

    The other workaround which is not officially supported because you are modifying the page body is to dynamically add the script line to the page at runtime, do something like this:

    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = 'http://path-to-server/path-to-your-online-script';
    document.body.appendChild(script);

    And then you may need to do some checking with a timer to wait till your loaded script objects are ready.

    Regards

    Matt

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2014 at 06:10 PM

    So - the week is just over and i have to deliver 😊

    As promised i created an document in the Lumira space: http://scn.sap.com/docs/DOC-52807

    Please take a look and give me feedback if there are any errors or weak descriptions in it.

    This addon is not ready and can easily be extended. One main point for me was to tackle the require.js and to have a possibility to visualize routes in Lumira.

    Take care and happy weekend.

    Manfred

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2014 at 10:56 PM

    i'd also love to see you get this working...

    Add comment
    10|10000 characters needed characters exceeded