Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8608

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

$
0
0

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


Viewing all articles
Browse latest Browse all 8608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>