Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
I cant load points in the bing

I have made the function below. This doesn't work. Not appears points on map.

I give parameters values to function.

function getinfo_sendquestionzasobyeduall(anypath, webagent, froms, next, select, radius) {     
    $.ajax({
        type: "GET",
        url: anypath, //url to file.php
        contentType: "application/json; charset=utf-8",
        dataType:'json',  
        success: function(json)  {                   
            for (var klucz in json) { 
                var wiersz = json[klucz];  
                var zmienna5V1 = wiersz[41]; 
                var zmienna6H1 = wiersz[42];
                //alert('latin:'+zmienna5V1+'  longin:'+zmienna6H1);  
                //show me info about geting sucess -is OK // 
                //next i parametresion function below
                addlocationbingmap(zmienna5V1,zmienna6H1); 
            }
        },
        error: function(error) {
        }
    });
}

in the function i wont add points to map but dont work

function addlocationbingmap(geoV1,geoH1)  
{ 
    var navigationBarMode = Microsoft.Maps.NavigationBarMode;
    var map = new Microsoft.Maps.Map('#oringseriesmap',
    {

//where your api key

        credentials: 'MY API KEY', 
        center: mapCentre, 
        navigationBarMode: navigationBarMode.compact,
        supportedMapTypes: [
            Microsoft.Maps.MapTypeId.road,
            Microsoft.Maps.MapTypeId.aerial,
            Microsoft.Maps.MapTypeId.grayscale,
            Microsoft.Maps.MapTypeId.canvasLight
        ]
    });

    // to value geoV1 and geoH1
    var mylocation = new Microsoft.Maps.Location(parseFloat(geoV1), parseFloat(geoH1));

    // push pin to map
    var pushpin = new Microsoft.Maps.Pushpin(mylocation, { text: '0', title: '1', subTitle: '', color: '#F00'});

    map.entities.push(pushpin);
}

In file *.html :

<script type='text/javascript' src='https://www.bing.com/api/maps/mapcontrol' async defer></script>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

A couple of things to help you debug this:

  • Check the console for errors.
  • Try removing "async defer" from the script tag. You haven't added a callback to that script tag reference, and it will load in parallel. This may end up loading the map script after you have called the add location function you created, and thus try to create the map before the SDK has been downloaded into your site.
  • Add break points to your code using the browsers developer tools and step through your code to ensure everything it running as expected.
  • Make sure you are only creating the map once (your add location function should only be called once). If it is called multiple times, you will end up creating multiple layered maps that hide each other.
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!