All Projects → alirezaashrafi → Googlemapview

alirezaashrafi / Googlemapview

Licence: apache-2.0
android google map view - imageView to make the map display process easier by entering latitude and longitude only by static map

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Googlemapview

Mapit
An easy way to embed google maps in your site.
Stars: ✭ 54 (+50%)
Mutual labels:  google, map
Dialogflow Web
Web App for Dialogflow
Stars: ✭ 135 (+275%)
Mutual labels:  google, website
Placepicker
Free Android Map Place Picker alternative using Geocoder instead of Google APIs
Stars: ✭ 126 (+250%)
Mutual labels:  google, map
Blackphish
🔱 [ Phishing Made Easy ] 🔱 (In Beta)
Stars: ✭ 133 (+269.44%)
Mutual labels:  google, website
Rgm
Tiny (1kb less) but very powerful React Google Map
Stars: ✭ 221 (+513.89%)
Mutual labels:  google, googlemaps
Agm Direction
This is the directive for @agm/core (not official)
Stars: ✭ 77 (+113.89%)
Mutual labels:  googlemaps, map
Ffcc
Fast Fourier Color Constancy: an auto white balance solution with machine learning in Fourier space
Stars: ✭ 133 (+269.44%)
Mutual labels:  google, image-processing
Quizzity
A fast-paced geography quiz
Stars: ✭ 80 (+122.22%)
Mutual labels:  map, website
Dc Sdk
DC-SDK 是基于 Cesium 进行二次开发的2、3D一体 WebGis 应用框架,该框架优化了 Cesium 的使用方式和增添了一些额外功能,旨在为开发者快速构建 WebGis 应用。🌎
Stars: ✭ 206 (+472.22%)
Mutual labels:  google, map
React Native Google Place Picker
React Native Wrapper of Google Place Picker for iOS + Android.
Stars: ✭ 180 (+400%)
Mutual labels:  google, map
Youtube Projects
This repository contains all the code I use in my YouTube tutorials.
Stars: ✭ 144 (+300%)
Mutual labels:  google, website
Flask Googlemaps
Easy way to add GoogleMaps to Flask applications. maintainer: @RiverFount
Stars: ✭ 550 (+1427.78%)
Mutual labels:  googlemaps, map
school-finder
👀 Find schools by location
Stars: ✭ 16 (-55.56%)
Mutual labels:  map, googlemaps
Google Map React
Google map library for react that allows rendering components as markers 🎉
Stars: ✭ 5,529 (+15258.33%)
Mutual labels:  google, map
Segment Open
Segment Source Distribution
Stars: ✭ 34 (-5.56%)
Mutual labels:  image-processing
Flutter native map
Stars: ✭ 35 (-2.78%)
Mutual labels:  map
Docker Vue Node Nginx Mongodb Redis
🐉 An awesome boilerplate, Integrated Docker, Vue, Node, Nginx, Mongodb and Redis in one, Designed to develop & build your web applications more efficient and elegant.
Stars: ✭ 34 (-5.56%)
Mutual labels:  website
Rembg
Rembg is a tool to remove images background.
Stars: ✭ 964 (+2577.78%)
Mutual labels:  image-processing
Jquery Mapael
jQuery plugin based on raphael.js that allows you to display dynamic vector maps
Stars: ✭ 981 (+2625%)
Mutual labels:  map
Leafletpano
A simple tool which tiles large images to publish them for web and mobile
Stars: ✭ 34 (-5.56%)
Mutual labels:  image-processing

Android google map view Library by static map

A library to make the map display process easier by entering latitude and longitude only

Do not forget the star:)⭐️

GoogleMapView APK Demo

How to download

Gradle

Add it in your root build.gradle at the end of repositories:
    allprojects {
         repositories {
             ...
             maven { url 'https://jitpack.io' }
         }
    }
add this line to your module build.gradle dependecies block:
    compile 'com.github.alirezaashrafi:GoogleMapView:1.0.4'

Maven

Add the JitPack repository to your build file
  <repositories>
    <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
    </repository>
  </repositories>
Add the dependency
    <dependency>
      <groupId>com.github.alirezaashrafi</groupId>
      <artifactId>GoogleMapView</artifactId>
      <version>1.0.4</version>
    </dependency>

how to use GoogleMapView

Attributes

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

XML

  <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"/>

JAVA

  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);



custom style GoogleMapView

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

how to change GoogleMapView default values?

note: for better performance change default values in the Application class onCreate method

  @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);

  }

Pinch to zoom in JAVA

    googleMapView.setZoomable(this);

Licence

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.


Author


. . . .

If you liked this library, do not forget to star and follow me ⭐️❤️️💙

Eventually see my other libraries and projects

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].