RxGoogleMapsBinding

RxJava binding APIs for Google Maps

License

License

GroupId

GroupId

org.aaronhe.rxgooglemapsbinding
ArtifactId

ArtifactId

rxgooglemapsbinding
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

aar
Description

Description

RxGoogleMapsBinding
RxJava binding APIs for Google Maps
Project URL

Project URL

https://github.com/aaronhe42/RxGoogleMapsBinding
Source Code Management

Source Code Management

https://github.com/aaronhe42/RxGoogleMapsBinding

Download rxgooglemapsbinding

How to add to project

<!-- https://jarcasting.com/artifacts/org.aaronhe.rxgooglemapsbinding/rxgooglemapsbinding/ -->
<dependency>
    <groupId>org.aaronhe.rxgooglemapsbinding</groupId>
    <artifactId>rxgooglemapsbinding</artifactId>
    <version>0.1.3</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/org.aaronhe.rxgooglemapsbinding/rxgooglemapsbinding/
implementation 'org.aaronhe.rxgooglemapsbinding:rxgooglemapsbinding:0.1.3'
// https://jarcasting.com/artifacts/org.aaronhe.rxgooglemapsbinding/rxgooglemapsbinding/
implementation ("org.aaronhe.rxgooglemapsbinding:rxgooglemapsbinding:0.1.3")
'org.aaronhe.rxgooglemapsbinding:rxgooglemapsbinding:aar:0.1.3'
<dependency org="org.aaronhe.rxgooglemapsbinding" name="rxgooglemapsbinding" rev="0.1.3">
  <artifact name="rxgooglemapsbinding" type="aar" />
</dependency>
@Grapes(
@Grab(group='org.aaronhe.rxgooglemapsbinding', module='rxgooglemapsbinding', version='0.1.3')
)
libraryDependencies += "org.aaronhe.rxgooglemapsbinding" % "rxgooglemapsbinding" % "0.1.3"
[org.aaronhe.rxgooglemapsbinding/rxgooglemapsbinding "0.1.3"]

Dependencies

compile (4)

Group / Artifact Type Version
io.reactivex : rxandroid jar 1.1.0
com.google.android.gms » play-services-maps jar 8.4.0
io.reactivex : rxjava jar 1.1.0
com.android.support » support-annotations jar 23.1.1

Project Modules

There are no modules declared in this project.

RxGoogleMapsBinding

Build Status

RxJava binding APIs for Google Maps.

Usage

Observe changes to CameraPosition from a GoogleMap:

RxGoogleMaps.cameraPositionChanges(map).subscribe(new Action1<CameraPosition>() {
  @Override public void call(CameraPosition cameraPosition) {
    Log.i(TAG, "CameraPosition: " + cameraPosition);
  }
};

Or observe changes to CameraPosition from a MapView or MapFragment or SupportMapFragment:

RxGoogleMaps.mapReady(mapView).flatMap(new Func1<GoogleMap, Observable<CameraPosition>>() {
  @Override public Observable<CameraPosition> call(GoogleMap googleMap) {
    return RxGoogleMaps.cameraPositionChanges(googleMap);
  }
}).subscribe(new Action1<CameraPosition>() {
  @Override public void call(CameraPosition cameraPosition) {
    Log.i(TAG, "CameraPosition: " + cameraPosition);
  }
});

See the Javadoc for more.

Download

Java bindings:

compile 'org.aaronhe.rxgooglemapsbinding:rxgooglemapsbinding:0.1.3'

Kotlin bindings:

compile 'org.aaronhe.rxgooglemapsbinding:rxgooglemapsbinding-kotlin:0.1.3'

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright (C) 2016 Aaron He

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
0.1.3
0.1.2
0.1.1
0.1.0