FancyMarkers

A utility library for adding custom markers to Android map

License

License

GroupId

GroupId

com.oguzbabaoglu
ArtifactId

ArtifactId

fancymarkers
Last Version

Last Version

0.2
Release Date

Release Date

Type

Type

aar
Description

Description

FancyMarkers
A utility library for adding custom markers to Android map
Project URL

Project URL

https://github.com/oguzbabaoglu/android-custom-markers
Source Code Management

Source Code Management

https://github.com/oguzbabaoglu/android-custom-markers

Download fancymarkers

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
com.google.android.gms » play-services-location jar 7.0.0

Project Modules

There are no modules declared in this project.

Fancy Markers

A utility library for adding custom markers to Android map.

Markers can use icons or layouts, respond to touches and load network images.

Sample

Including In Your Project

Latest version: Maven Central

dependencies {
    compile 'com.oguzbabaoglu:fancymarkers:0.2'
}

Usage

For a working implementation see the examples/ folder.

  1. Extend the CustomMarker class for your custom marker or use a simple IconMarker with icon resources.
 @Override
 public boolean onStateChange(boolean selected) {
     myCustomView.setBackgroundColor(selected ? selectedColor : defaultColor);
     return true;
 }

 @Override
 public BitmapDescriptor getBitmapDescriptor() {
     return BitmapGenerator.fromView(myCustomView);
 }
  1. Create a MarkerManager for your map.
 MarkerManager<MyMarker> markerManager;

 @Override
 public void onMapReady(GoogleMap googleMap) {
     markerManager = new MarkerManager<>(googleMap);
 }
  1. Add your markers.
 markerManager.addMarker(new MyMarker());
 

License

Copyright 2015 Oguz Babaoglu

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.2