Pass to Bing Maps V8 a lot of points from SQL Server 2012/2017 RRS feed

  • Question

  • We have a .net (C#) application and we manage to pass one point to bing Maps with 2 'parameters' :


    with this code in aspx  :                                                      

    <script type='text/javascript'>
                function loadMapScenario()            {
                    var map = new Microsoft.Maps.Map(document.getElementById('myMap'),                    {
                            center: new Microsoft.Maps.Location(<%=latitudine%>,<%=longitudine%>),                                 
                            mapTypeId: Microsoft.Maps.MapTypeId.aerial,                        zoom: 17                    });
                    var layer = new Microsoft.Maps.Layer("MyPushpinLayer1");
                    layer.add(new Microsoft.Maps.Pushpin(map.getCenter()));
                    map.layers.insert(layer);            }        </script>

    Our problem is 'How to pass many points to Bing Map' from codebehind to javascript ?

    Thursday, October 31, 2019 10:52 AM

All replies