Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

sap-ui-core.js and jquery.vmap.min.js

Hi,

I'm working with a theme template in javascript/ajax/html 5

I would like to integrate SAP UI in it.

But when I add

<script id="sap-ui-bootstrap" type="text/javascript"

  src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"

  data-sap-ui-preload="sync"

  data-sap-ui-libs="sap.ui.commons, sap.viz, sap.ui.table, sap.ui.core">

</script>

I have error in a javascript file :

$('#vmap').vectorMap({

                map: 'world_en',

                backgroundColor: '#fff',

                color: '#5bc0de',

                borderColor: '#5bc0de',

                hoverOpacity: 0.7,

                selectedColor: '#82b964',

                enableZoom: true,

                showTooltip: true,

                values: sample_data,

                scaleColors: ['#5bc0de', '#006491'],

                normalizeFunction: 'polynomial'

            });

=> No property or or method « vectorMap » for this item

If I don't add it, no error.

I searched and I think it's a conflict between sap-ui-core.js and jquery.vmap.min.js

I added <script type="text/javascript">jQuery.noConflict();</script>

but the error is always here.

Can you help me please?

Best regards

Yannick

Tags edited by: Michael Appleby

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question