نقشه پارسی جو در اپلیکیشن های اندروید
به منظور استفاده از ابزار نقشه پارسی جو در اپلیکیشن های اندروید قطعه کد زیر را در فایل gradle اپلیکیشن خود قرار دهید:
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.coparsijoo:map-android-parsijoo:1.1'
}
کد زیر را در قسمت لایوت مربوط به اکتیویتی خود اضافه کنید:
<ir.parsijoo.map.android.Viewer
android:id="@+id/mapview"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:api_key="*********" />
به جای ********* می بایست کلید api مربوط به نقشه پارسی جو را وارد نمایید. به منظور دریافت کلید api به لینک زیر مراجعه نمایید :
http://developers.parsijoo.ir/dashboard/
به منظورآموزش استفاده از تمامی توابع api نقشه پارسی جو به لینک زیر مراجعه نمایید:
http://developers.parsijoo.ir/service/map
دسترسی های مورد نیاز
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
برای اندروید 6 به بالا(API level 23)، می بایست مجوز ها به صورت داینامیک از کاربر دریافت گردد با استفاده از دستور زیر:
RequestPermission
Gets news from https://liveuamap.com/ and sends it to a Discord webhook.
Python Engineer Roadmap
Unofficial Google Map SDK for Universal Windows Platform (UWP)
Map coloring, using four colors
A flutter package to view a map widget on mobile apps. Supports Android, iOS, Web and Desktop.
A framework which is capable of mapping rigid and non-rigid scenes and localize camera in the environment at the same time
React.JS component for Leaflet javascript library, to use Neshan Maps Platform in you web applications. This means you can easily load the map tiles and layers in your React app using leaflet library.