Using Google Maps on Android, does anyone have any ideas on how to load only the markers that will be displayed on the current screen?
I am going to send a request to a web service that returns lat / lng for the corresponding tokens. But what would be the parameters that I could use to calculate if the given lat / lng is inside the screen?
What would be ideal would be something like a Gowalla implementation
Any ideas?
Mike
, , ( - SDK Level 7)
mapView MapView
mapView.getLatitudeSpan();
: ( ) , .
mapView.getLongitudeSpan();
.
mapView.getLocationInWindow(location); mapView.getLocationOnScreen(location); mapView.getZoomLevel();
Source: https://habr.com/ru/post/1758288/More articles:Лучший способ объявить эту огромную структуру? - cIs there a pause with nanoseconds in bash? - unixAny good WPF debuggers / inspectors for VS 2010? - wpfMySQL: Get Root Node of Parent Child Structure - sqlSQL query query - loop - sqlProblem with SQL stored procedure - problem with decimal value conversion - sqlJquery select child of parent binding - jqueryCommon Socket Question - Migrating C ++ Structures from Java to C ++ - javaWhat is a smart way to convert a complex Ant script into a set of Eclipse projects? - eclipseDetecting IE6 using Javascript / jQuery revisited - javascriptAll Articles