Skip to main content
adicionou 51 caracteres ao conteúdo
Fonte Link
Diego Souza
  • 16,7mil
  • 4
  • 36
  • 104

Tente fazer assim:

var Bounds  = osGoogleMap.OSMaps.DublinTheme_wt106_block_wtMainContent_Google_Maps_wtMap_block.getBounds();
var Markers = [];

for(var i = 0; i < markers.length; i++){
   if(Bounds.contains(markers[i].position))
      consoleMarkers.logpush(markers[i].title);
}

console.log(Markers);

Tente fazer assim:

var Bounds = osGoogleMap.OSMaps.DublinTheme_wt106_block_wtMainContent_Google_Maps_wtMap_block.getBounds();

for(var i = 0; i < markers.length; i++){
   if(Bounds.contains(markers[i].position))
      console.log(markers[i].title);
}

Tente fazer assim:

var Bounds  = osGoogleMap.OSMaps.DublinTheme_wt106_block_wtMainContent_Google_Maps_wtMap_block.getBounds();
var Markers = [];

for(var i = 0; i < markers.length; i++){
   if(Bounds.contains(markers[i].position))
      Markers.push(markers[i].title);
}

console.log(Markers);
adicionou 88 caracteres ao conteúdo
Fonte Link
Diego Souza
  • 16,7mil
  • 4
  • 36
  • 104

Tente fazer assim:

var Bounds = maposGoogleMap.OSMaps.DublinTheme_wt106_block_wtMainContent_Google_Maps_wtMap_block.getBounds();

for(var i = 0; i < markers.length; i++){
   if(Bounds.contains(markers[i].position))
      console.log(markers[i].title);
}

Tente fazer assim:

var Bounds = map.getBounds();

for(var i = 0; i < markers.length; i++){
   if(Bounds.contains(markers[i].position))
      console.log(markers[i].title);
}

Tente fazer assim:

var Bounds = osGoogleMap.OSMaps.DublinTheme_wt106_block_wtMainContent_Google_Maps_wtMap_block.getBounds();

for(var i = 0; i < markers.length; i++){
   if(Bounds.contains(markers[i].position))
      console.log(markers[i].title);
}
Fonte Link
Diego Souza
  • 16,7mil
  • 4
  • 36
  • 104

Tente fazer assim:

var Bounds = map.getBounds();

for(var i = 0; i < markers.length; i++){
   if(Bounds.contains(markers[i].position))
      console.log(markers[i].title);
}