android-mapview

Using React Native MapView in ClojureScript Reagent

只谈情不闲聊 提交于 2021-02-06 13:53:43
问题 I am trying to use MapView from https://github.com/airbnb/react-native-maps using Reagent. It works fine but how could I get local state for MapView when onRegionChange event is fired? Trying to use current/component but it is always nil . (def Expo (js/require "expo")) (def map-view (r/adapt-react-class (.-MapView Expo))) (defn my-map [] (r/create-class {:component-did-mount (fn [this] (println "component mount ")) :reagent-render (fn [] (let [this (r/current-component)] [map-view {:style {

Using React Native MapView in ClojureScript Reagent

*爱你&永不变心* 提交于 2021-02-06 13:50:55
问题 I am trying to use MapView from https://github.com/airbnb/react-native-maps using Reagent. It works fine but how could I get local state for MapView when onRegionChange event is fired? Trying to use current/component but it is always nil . (def Expo (js/require "expo")) (def map-view (r/adapt-react-class (.-MapView Expo))) (defn my-map [] (r/create-class {:component-did-mount (fn [this] (println "component mount ")) :reagent-render (fn [] (let [this (r/current-component)] [map-view {:style {

Using React Native MapView in ClojureScript Reagent

有些话、适合烂在心里 提交于 2021-02-06 13:50:50
问题 I am trying to use MapView from https://github.com/airbnb/react-native-maps using Reagent. It works fine but how could I get local state for MapView when onRegionChange event is fired? Trying to use current/component but it is always nil . (def Expo (js/require "expo")) (def map-view (r/adapt-react-class (.-MapView Expo))) (defn my-map [] (r/create-class {:component-did-mount (fn [this] (println "component mount ")) :reagent-render (fn [] (let [this (r/current-component)] [map-view {:style {

Drawing shapes in Android MapView independent of the zoom level

限于喜欢 提交于 2021-02-05 17:44:37
问题 I need to draw shapes just like those you would create with custom maps on Google Maps, using Android's MapView. In other words, if I draw a shape on the map, when I zoom out it should shrink, covering the same area of the map regardless of the zoom level. Example following the Android Reference: @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new

Drawing shapes in Android MapView independent of the zoom level

心已入冬 提交于 2021-02-05 17:41:22
问题 I need to draw shapes just like those you would create with custom maps on Google Maps, using Android's MapView. In other words, if I draw a shape on the map, when I zoom out it should shrink, covering the same area of the map regardless of the zoom level. Example following the Android Reference: @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new

Drawing shapes in Android MapView independent of the zoom level

十年热恋 提交于 2021-02-05 17:36:14
问题 I need to draw shapes just like those you would create with custom maps on Google Maps, using Android's MapView. In other words, if I draw a shape on the map, when I zoom out it should shrink, covering the same area of the map regardless of the zoom level. Example following the Android Reference: @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new

Drawing shapes in Android MapView independent of the zoom level

浪尽此生 提交于 2021-02-05 17:34:09
问题 I need to draw shapes just like those you would create with custom maps on Google Maps, using Android's MapView. In other words, if I draw a shape on the map, when I zoom out it should shrink, covering the same area of the map regardless of the zoom level. Example following the Android Reference: @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- Point screenPts = new

Android MapView POI Caching Strategy

匆匆过客 提交于 2021-01-28 06:41:45
问题 I have an Android app that when launched, inflates a MapView, gets the user's location and then makes a request to my server to fetch all points of interest (POI) as JSON within some radius of their location and draws those points on the map. I want the user to be able to pan around the map and see more points of interest load as they go outside of that initial data load, just like Google maps. My initial thought is to handle the pan event and when panning stops, get the map center, and make

Android: requires unavailable shared library com.google.android.maps; failing

会有一股神秘感。 提交于 2021-01-27 04:09:27
问题 First of all, I set the Project Build Target in project\properties\android. I created AVD with Level 7 and 8 with Google APIs, set each AVD only the SD card size 4Gb, set the min version of SDK to 7 the target SDK to 8 in Manifest file. Without success. I delete all AVD and recreate those. After I reinstall Eclipse Rcp, Installed ADT in Eclipse, and Installed Android SDK, and create AVDs again. My GPS application is worked fine without Google APIs, in the earlier version I currently

Android: requires unavailable shared library com.google.android.maps; failing

妖精的绣舞 提交于 2021-01-27 04:09:07
问题 First of all, I set the Project Build Target in project\properties\android. I created AVD with Level 7 and 8 with Google APIs, set each AVD only the SD card size 4Gb, set the min version of SDK to 7 the target SDK to 8 in Manifest file. Without success. I delete all AVD and recreate those. After I reinstall Eclipse Rcp, Installed ADT in Eclipse, and Installed Android SDK, and create AVDs again. My GPS application is worked fine without Google APIs, in the earlier version I currently