Click here to Skip to main content
15,905,682 members

Comments by Joaquin Nigro (Top 2 by date)

Joaquin Nigro 5-Feb-16 8:44am View    
Yes, you're right. Anyway, I simplified the code deleting Map_Click function and the three global variables.

I replaced all this:

var latitud
var longitud
var latylong

function coordGoogle(str) {
window.external.coordGoogle(str);
}

function Map_Click(e){
latitud = e.latLng.lat();
longitud = e.latLng.lng();
latylong = latitud + " " + longitud;
coordGoogle(latylong);
}

google.maps.event.addListener(map, 'click', Map_Click);


With this:

google.maps.event.addListener(map, 'click', function(event) {
window.external.coordGoogle(event.latLng.lat(), event.latLng.lng());
});


Other thing, I tried to emulate IE9, according your first comment, but the script's errors still happens. So, only solution for this (for now) is to set "ScripErrorsSuppressed" to true.

Thank you so much!
Joaquin Nigro 3-Feb-16 14:36pm View    
Hi Richard! Thanks you!

I tested the code on a new project and works fine! But on the original project still not working. I will still looking for a solution... if I find something I will post it

I want to break my head on the wall :(

Thank you again!