He probado a reducir las dimensiones y me sigue dando error. Sin embargo con Google Maps no da ningún problema.
Ahora mismo no es algo que me corra prisa, lo tengo solucionado con Google Maps o con Bing (abriendo en el navegador), pero tengo curiosidad por saber si se puede hacer, tanto esto como lo que planteaba al abrir el hilo de interactuar con la aplicación Mapas de Windows 10.
Voy a copiar aquí como estoy creando el HTML en cuestión por si alguien lo quiere probar. Basicamente es un copia/pega de un ejemplo de la web de Microsoft:
LOCAL lcCadena
lcCadena = "C/Mayor, 19002, Guadalajara"
TEXT TO lcHtml NOSHOW TEXTMERGE
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<!-- Reference to the Bing Maps SDK -->
<script type='text/javascript' src='
http://www.bing.com/api/maps/mapcontrol?callback=GetMap' async defer></script>
<script type='text/javascript'>
var map, searchManager;
function GetMap()
{
map = new Microsoft.Maps.Map('#myMap', {credentials: 'aquí va la clave proporcionada por Microsoft'});
geocodeQuery("<<lcCadena>>");
}
function geocodeQuery(query) {
//If search manager is not defined, load the search module.
if (!searchManager) {
//Create an instance of the search manager and call the geocodeQuery function again.
Microsoft.Maps.loadModule('Microsoft.Maps.Search', function () {
searchManager = new Microsoft.Maps.Search.SearchManager(map);
geocodeQuery(query);
});
} else {
var searchRequest = {
where: query,
callback: function (r) {
//Add the first result to the map and zoom into it.
if (r && r.results && r.results.length > 0) {
var pin = new Microsoft.Maps.Pushpin(r.results[0].location);
map.entities.push(pin);
map.setView({ bounds: r.results[0].bestView });
}
},
errorCallback: function (e) {
//If there is an error, alert the user about it.
alert("No se han encontrado resultados.");
}
};
//Make the geocode request.
searchManager.geocode(searchRequest);
}
}
</script>
</head>
<body>
<div id="myMap" style="width:100%; height:100%"></div>
</body>
</html>
ENDTEXT
STRTOFILE(lcHtml,"MiMapaBing.htm")
this.oleIE.Navigate(FULLPATH("MiMapaBing.htm"))
this.oleIE.SetFocus()