Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ad86a05
Added color as Marker property
timhagn Nov 11, 2015
3bf24c0
Fixed Buf with updateCenter() - loosing zoom when .newLatLng alone wa…
timhagn Nov 12, 2015
468e467
added default color constants to index.android.js
timhagn Nov 12, 2015
789ac7d
added support for custom marker icons by resource
timhagn Nov 12, 2015
24a34b1
added changes from @kusamakura (icon/snippet) and combined them with …
timhagn Nov 13, 2015
25b16f4
cleanup
timhagn Nov 13, 2015
3a6dc33
removed colors from android.js - wasn't working
timhagn Nov 13, 2015
0ff0db2
removed colors from android.js - wasn't working
timhagn Nov 13, 2015
bc19542
updated README.md
timhagn Nov 13, 2015
7d192dd
updated README.md
timhagn Nov 13, 2015
357c5c5
removed 'getValueOfResource'
timhagn Nov 18, 2015
f44a92c
removed 'getValueOfResource'
timhagn Nov 18, 2015
ca37cef
added merge from @kusamakura onMarkerClick
timhagn Nov 24, 2015
5482cd2
changed build.gradle to prevent Dex Errors in React Native 0.15.+
timhagn Nov 25, 2015
27a0705
Updated to @ReactProp to make it compatible with RN 0.15.0
timhagn Dec 2, 2015
ca133b6
some error checking
timhagn Dec 2, 2015
9182492
some error checking
timhagn Dec 2, 2015
9fec26c
some error checking
timhagn Dec 2, 2015
4f9930a
zoomLevel onMyLocationButtonClick
timhagn Dec 2, 2015
8212174
zoomLevel onMyLocationButtonClick
timhagn Dec 2, 2015
101c056
zoomLevel onMyLocationButtonClick
timhagn Dec 2, 2015
abbcc40
zoomLevel onMyLocationButtonClick
timhagn Dec 2, 2015
2f4d414
zoomLevel onMyLocationButtonClick
timhagn Dec 2, 2015
df8df29
updated RN to 0.16.0, added ...View.propTypes to module PropTypes
timhagn Dec 8, 2015
eb05e3d
added 'clickMarker' to show or hide Info windows
timhagn Jan 7, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/react-native-gmaps.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

263 changes: 130 additions & 133 deletions .idea/workspace.xml

Large diffs are not rendered by default.

22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,30 @@ let RNGMap = require('react-native-gmaps');
style={ { height: 500, width: 500 } }
markers={ [
{ coordinates: {lng: 0.1, lat: 51.0} },
{ coordinates: {lng: -0.1, lat: 51.0}, title: "Click marker to see this title!" }
{
coordinates: {lng: -0.1, lat: 51.0},
title: "Click marker to see this title!",
snippet: "Subtitle",
id: 0,
/*
* Able to use "my_icon" or {uri: 'my_icon', width: 100, height: 100 } here as well
*/
icon: require('image!my_icon'),
/*
* color is only working with default icon
*/
color: 120,
}
] }
zoomLevel={10}
onMapChange={(e) => console.log(e)}
onMapError={(e) => console.log('Map error --> ', e)}
center={ { lng: 0.1, lat: 51.0 } } />
center={ { lng: 0.1, lat: 51.0 } }
/*
* clickMarker shows Info Window of Marker with id: 0,
* hides Info Window if given null
*/
clickMarker={0}/>
```

##### onMapChange
Expand Down
12 changes: 9 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ android {
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false // Set this to true to enable Proguard
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
lintOptions {
abortOnError false
}
Expand All @@ -22,7 +28,7 @@ repositories {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.facebook.react:react-native:0.12.0'
compile 'com.google.android.gms:play-services:8.1.0'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.facebook.react:react-native:0.16.+'
compile 'com.google.android.gms:play-services-maps:8.1.0'
}
Loading