none
How to pass dynamic latitude and longitude value from sql to jsp to create bing map. RRS feed

  • Question

  • Hi Team,

    I need help on bing map ,

    How to pass dynamic latitude and longitude value from sql to jsp   to create bing map.

    Please help here is my code where i hardcode latitude & longitude but i need this to be come from sql to jsp also want to pass multiple latitude and longitude value to map.

    <!DOCTYPE html>
    <html>
    <head>
     <title></title>
     <meta charset="utf-8" />
     <script type='text/javascript'
    src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0'></script>

     <script type='text/javascript'>
     var map;
     var key='My Bing Maps Key';
     function GetMap()
     {
     
     var mapOption={credentials:key,
      center: new Microsoft.Maps.Location(19.092827, 72.863004),
     zoom :12
      
     };
     map = new Microsoft.Maps.Map('#myMap',mapOption );
     var pushpin=new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(19.092827, 72.863004));
     map.entities.push(pushpin);
     }
     </script>
    </head>
    <body onload="GetMap();">
     <div id="myMap" style=";width:800px;height:600px;"></div>
    </body>
    </html>


    Neha


    Thursday, June 7, 2018 3:56 PM

All replies