Tabnine Logo
Projection.toScreenLocation
Code IndexAdd Tabnine to your IDE (free)

How to use
toScreenLocation
method
in
com.google.android.gms.maps.Projection

Best Java code snippets using com.google.android.gms.maps.Projection.toScreenLocation (Showing top 12 results out of 315)

origin: airbnb/AirMapView

@Override public void getScreenLocation(LatLng latLng, OnLatLngScreenLocationCallback callback) {
 callback.onLatLngScreenLocationReady(googleMap.getProjection().toScreenLocation(latLng));
}
origin: mg6maciej/android-maps-extensions

@Override
public Point toScreenLocation(LatLng location) {
  return projection.toScreenLocation(location);
}
origin: DroidsOnRoids/Workcation

public void refresh() {
  Projection projection = googleMap.getProjection();
  for (int i = 0; i < markersList.size(); i++) {
    refresh(i, projection.toScreenLocation(markersList.get(i).latLng()));
  }
}
origin: DroidsOnRoids/Workcation

@NonNull
private PulseMarkerView createPulseMarkerView(final LatLng latLng) {
  return new PulseMarkerView(getContext(), latLng, googleMap.getProjection().toScreenLocation(latLng));
}
origin: DroidsOnRoids/Workcation

public void createAndShowMarker(final int position, final LatLng latLng) {
  PulseMarkerView marker = createPulseMarkerView(position, googleMap.getProjection().toScreenLocation(latLng), latLng);
  marker.showWithDelay(scaleAnimationDelay);
  scaleAnimationDelay += ANIMATION_DELAY_FACTOR;
}
origin: mg6maciej/android-maps-extensions

private double calculateDistanceBetweenMarkers() {
  Projection projection = map.getProjection();
  Point point = projection.toScreenLocation(new LatLng(0.0, 0.0));
  point.x += getResources().getDimensionPixelSize(R.dimen.distance_between_markers);
  LatLng nextPosition = projection.fromScreenLocation(point);
  return nextPosition.longitude;
}
origin: DroidsOnRoids/Workcation

public void addStartMarker(final LatLng latLng) {
  startMarker = createPulseMarkerView(latLng);
  startMarker.updatePulseViewLayoutParams(googleMap.getProjection().toScreenLocation(latLng));
  addMarker(startMarker);
  startMarker.show();
}
origin: DroidsOnRoids/Workcation

public void addFinishMarker(final LatLng latLng) {
  finishMarker = createPulseMarkerView(latLng);
  finishMarker.updatePulseViewLayoutParams(googleMap.getProjection().toScreenLocation(latLng));
  addMarker(finishMarker);
  finishMarker.show();
}
origin: sarweshkumar47/Curve-Fit

Point startPoint = mapProjection.toScreenLocation(source);
Point endPoint = mapProjection.toScreenLocation(destination);
origin: Bhoomika06/Styled-Map-Pager

@Override
public void onPageSelected(int position) {
  MyLocation location = latLngsArrayList.get(position);
  Point mappoint = map.getProjection().toScreenLocation(
      new LatLng(location.getLatitude(), location.getLongitude()));
  mappoint.set(mappoint.x, mappoint.y - 30);
  map.animateCamera(CameraUpdateFactory.newLatLng(map.getProjection().fromScreenLocation(mappoint)));
  customMap.addSelectedCustomPin(position);
}
origin: CUTR-at-USF/OpenTripPlanner-for-Android

int limitSouthwestLeft = mMapPaddingLeft;
int limitSouthwestBottom = windowHeight - mMapPaddingBottom;
Point northeastInScreen = mMap.getProjection().toScreenLocation(routeBounds.northeast);
Point southwestInScreen = mMap.getProjection().toScreenLocation(routeBounds.southwest);
  Point firstTransitMarkerInScreen = mMap.getProjection().toScreenLocation(firstTransitMarker.getPosition());
  int maxDistanceToRouteEdge = 0;
  int distanceHorizontalNortheast = northeastInScreen.x - firstTransitMarkerInScreen.x;
origin: ac-opensource/MarkerBuilder

Point screenCenterPoint = googleMap.getProjection().toScreenLocation(point);
LatLng radiusLatLng = googleMap.getProjection().fromScreenLocation(new Point(screenCenterPoint.x + (int)radius, screenCenterPoint.y));
initRadiusMetersFinal = MarkerAreasUtils.toRadiusMeters(point, radiusLatLng);
com.google.android.gms.mapsProjectiontoScreenLocation

Popular methods of Projection

  • fromScreenLocation
  • getVisibleRegion
  • fromPixels
  • metersToEquatorPixels
  • toPixels

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now