Commit c4fcafbd48ead305662e9a04fe5a9f6c5e0bf553
1 parent
98b61275
Exists in
master
and in
7 other branches
Alteração na janela de diálogo da construção de rotas
Showing
1 changed file
with
17 additions
and
27 deletions
Show diff stats
ferramentas/googlemaps1/index.js
... | ... | @@ -374,18 +374,13 @@ function constroiRota() |
374 | 374 | var point = place.geometry.location; |
375 | 375 | //marker = new google.maps.Marker({point:point}); |
376 | 376 | endereco2 = place.formatted_address; |
377 | - /* | |
378 | - var infowindow = new google.maps.InfoWindow({ | |
379 | - map: map, | |
380 | - position: point, | |
381 | - content: '<span style=font-size:9px ><b>latlng:</b>' + point.lat() + "," + point.lng() + '<br><b>Address:</b>' + endereco2 + '<br>' | |
382 | - }); | |
383 | - */ | |
384 | - endereco2 = window.prompt("Endereco do final",endereco2) | |
385 | - if (endereco2!=null && endereco2!=""){ | |
386 | - //marker.setMap(map); | |
387 | - montaRota(); | |
388 | - } | |
377 | + endereco2 = i3GEO.janela.prompt( | |
378 | + "Endereco do final", | |
379 | + function(){ | |
380 | + montaRota(); | |
381 | + }, | |
382 | + endereco2 | |
383 | + ); | |
389 | 384 | } |
390 | 385 | else{ |
391 | 386 | i3GEO.janela.tempoMsg("Ocorreu um erro"); |
... | ... | @@ -397,21 +392,16 @@ function constroiRota() |
397 | 392 | var place = response[0]; |
398 | 393 | var point = place.geometry.location; |
399 | 394 | endereco1 = place.formatted_address; |
400 | - /* | |
401 | - var infowindow = new google.maps.InfoWindow({ | |
402 | - map: map, | |
403 | - position: point, | |
404 | - content: '<span style=font-size:9px ><b>latlng:</b>' + point.lat() + "," + point.lng() + '<br><b>Address:</b>' + endereco1 + '<br>' | |
405 | - }); | |
406 | - */ | |
407 | - endereco1 = window.prompt("Endereco do inicio",endereco1) | |
408 | - if (endereco1 != null && endereco1 != ""){ | |
409 | - //marker.setMap(map); | |
410 | - geocoder.geocode( | |
411 | - {'location':pontoRota2}, | |
412 | - pt2 | |
413 | - ); | |
414 | - } | |
395 | + endereco1 = i3GEO.janela.prompt( | |
396 | + "Endereco do inicio", | |
397 | + function(){ | |
398 | + geocoder.geocode( | |
399 | + {'location':pontoRota2}, | |
400 | + pt2 | |
401 | + ); | |
402 | + }, | |
403 | + endereco1 | |
404 | + ); | |
415 | 405 | } |
416 | 406 | else{ |
417 | 407 | i3GEO.janela.tempoMsg("Ocorreu um erro"); | ... | ... |