allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
compile 'com.github.alirezaashrafi:GoogleMapView:1.0.4'
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.alirezaashrafi</groupId>
<artifactId>GoogleMapView</artifactId>
<version>1.0.4</version>
</dependency>
Attribute Name | Type | Default Value |
---|---|---|
setLatitude | float | 35.744920 |
setLongitude | float | 51.376303 |
setMapType | enum | satellite |
setMapScale | enum | high |
setMapZoom | int | 17 |
setMapWidth | int | 640px |
setMapHeight | int | 640px |
<com.alirezaashrafi.library.GoogleMapView
android:id="@+id/googleMapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:setLatitude="35.744920"
app:setLongitude="51.376303"
app:setMapType="satellite"
app:setMapScale="high"
app:setMapZoom="15"
app:setMapWidth="350"
app:setMapHeight="350"/>
GoogleMapView googleMapView = (GoogleMapView) findViewById(R.id.googleMapView);
googleMapView.setLatitude(35.744920f);
googleMapView.setLongitude(51.376303f);
googleMapView.setMapType(MapType.SATELLITE);
googleMapView.setMapScale(MapScale.HIGH);
googleMapView.setMapZoom(15);
googleMapView.setMapWidth(350);
googleMapView.setMapHeight(350);
googleMapView.setLocation(location);
googleMapView.setZoomable(activity);
<style name="googleViewStyle" parent="GoogleMapView">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
<item name="setMapType">roadmap</item>
<item name="setMapScale">low</item>
<item name="setLatitude">35.744920</item>
<item name="setLongitude">51.376303</item>
<item name="setMapZoom">17</item>
<item name="setMapWidth">640</item>
<item name="setMapHeight">640</item>
</style>
@Override
public void onCreate() {
super.onCreate();
GoogleMapViewConfigs.setDefaultMapType(MapType.SATELLITE);
GoogleMapViewConfigs.setDefaultLatitude(35.744920f);
GoogleMapViewConfigs.setDefaultLongitude(51.376303f);
GoogleMapViewConfigs.setDefaultMapZoom(17);
GoogleMapViewConfigs.setDefaultMapScale(MapScale.HIGH);
GoogleMapViewConfigs.setDefaultMapHeight(350);
GoogleMapViewConfigs.setDefaultMapWidth(350);
}
googleMapView.setZoomable(this);
Copyright 2018 Alireza Ashrafi
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.
An alternative YouTube front end, for Android. [WIP]
Experimental project for learning computer graphics using vulkan API and c++.
Android Toast For RTL Applications
Flutter_Todo_app 📝
NMock is an application that you can use to mock your trips with fake locations. This application uses Neshan SDK and Neshan API for Map and location infromation.
Sample Android Clean MVVM architecture ( Retrofit + Okhttp + Moshi + Glide + Room + Navigation Component + Coroutines + Flow + DataStore + ViewModel + Hilt + Data binding )
Spatial Map Fields for Laravel Nova
Guide App for Tehran Metro.