Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

166
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda