maps

Here map offline implementation [closed]

两盒软妹~` 提交于 2019-12-02 09:12:57
I am making an android application currently that will use "Here map SDK" for offline map navigation. I have followed the documentation given in https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/maps-offline.html But I am having problem on its Implementation. Q: Can Anyone provide me the demo application that has successful implementation on "Offline Maps (MapLoader)" of Here Map SDK? There is an official HERE example exactly for that usecase (offline mapdata download, update and checking for updates) on https://tcs.ext.here.com/mobilesdk_examples Direct links:

Google maps API geolocation + radar places search

筅森魡賤 提交于 2019-12-02 07:35:06
I am trying to use both Geolocation and Places from the google maps API to display a map (at my location) with the nearest places around me. The two examples work seperately but not together. Can anyone tell me why there is a problem with this? am I overwriting the map with another or doing something else wrong? <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyA93l5zPyIvGB7oYGqzLSk28r5XuIs2Do8 &sensor=true&libraries=places"></script> <script> var map; var service; var marker; var pos; function initialize() { var mapOptions = { zoom: 15 }; map = new

showing specific state of a country on gmap highlighted

拜拜、爱过 提交于 2019-12-02 07:03:35
I wants to show specific state of a country as highlighted and remaining area in shadow. I wants to implement like http://www.redfin.com/homes-for-sale#!disp_mode=M&lat=29.770534985365693&long=-95.21904093471284&market=houston&sf=1,2&v=8&zoomLevel=8 I had searched about this and what I understand that, I needs to use overlay for that. I have one question, Would I needs to provide lat and lng for borders or it can be achieved by providing some parameter like state code etc. Any example of showing shadow and highlighted area will be great help. Would I needs to provide lat and lng for borders

Plotly's fillcolor defaults to half-transparency, want no-transparency

Deadly 提交于 2019-12-02 07:01:44
问题 I am trying to build a map in R using plotly. I will share the code required to build the dataframe in a reply to this post. Here is the code I am using to plot the chart: florida %>% group_by(group) %>% plot_ly(x = ~long, y = ~lat, color = ~color_vals, colors = 'Blues') %>% add_polygons(line = list(width = 2), # fillcolor = 'WHAT GOES HERE', opacity = 1, showlegend = FALSE) and here is the output I am getting: My issue is simple to understand, but I cannot find a way to fix this. I'd like

Creating a Cartogram in R

百般思念 提交于 2019-12-02 05:45:55
I am trying to make a cartogram in R to show the number of occurrences in each area of the UK. My data currently looks like this: Area Occurences lon lat 1 Greater London East North UK 200 -0.0936496 51.43092 2 Lambeth and Southwark UK 16 -0.1178424 51.49351 3 Black Country UK 58 -2.0752861 52.52005 4 Glasgow UK 45 -4.2518060 55.86424 5 Leeds UK 331 -1.5490774 53.80076 6 Sth Herts or Watford UK 210 -0.3903200 51.65649 I have the longitude and latitude for all of the 120 observations. So far I have used the following code in an attempt to produce a cartogram: library(rgdal) library(cartogram)

Leafletjs: Dynamically changing map feature colors

房东的猫 提交于 2019-12-02 05:15:14
问题 It's been a few days now that I have been looking for a way to be able to dynamically change the colors of different map features such as Roads, Water, Buildings, Background etc using leaflet.js. I know we had this option in Mapbox using the Mapbox GL. But I am wondering if this can be achieved using the leaflet.js library. Any help/workaround would be highly appreciated. Thanks 回答1: By default Leaflet can render only raster tiles (i.e. plain images, which you cannot easily modify) and vector

Android MapView overlay disappearing when zooming in

对着背影说爱祢 提交于 2019-12-02 04:36:40
I'm working on a simple Android app for plotting routes on a map. All is going well, but I have an issue when zooming in on my Samsung Galaxy S2. It works fine on a Galaxy S3, so I'm wondering whether it's related to memory management on the lower specced device. It also works fine on the emulator. Here is equivalent code located in the overlays onDraw method, just condensed for posting here: Point current = new Point(); Path path = new Path(); Projection projection = mapView.getProjection(); Iterator<GeoPoint> iterator = pointList.iterator(); if (iterator.hasNext()) { projection.toPixels

Creating a Cartogram in R

余生长醉 提交于 2019-12-02 03:27:48
问题 I am trying to make a cartogram in R to show the number of occurrences in each area of the UK. My data currently looks like this: Area Occurences lon lat 1 Greater London East North UK 200 -0.0936496 51.43092 2 Lambeth and Southwark UK 16 -0.1178424 51.49351 3 Black Country UK 58 -2.0752861 52.52005 4 Glasgow UK 45 -4.2518060 55.86424 5 Leeds UK 331 -1.5490774 53.80076 6 Sth Herts or Watford UK 210 -0.3903200 51.65649 I have the longitude and latitude for all of the 120 observations. So far I

Google Maps in Chrome ARC

烈酒焚心 提交于 2019-12-02 02:58:51
I recently saw that ARC is now supporting a few Google Play Services including Google Maps. When using the ARC Welder, I specify the following metadata: {"usePlayServices":["maps"]} According to the documentation here , I must also include the crx_key value in the metadata. When doing so, the additional metadata appears as such: { "usePlayServices":["maps"], "crx_key":"<KEY FROM WEBSTORE>" } Attempting to Launch the App causes an "Error Loading Extension" message: Any ideas as to why I'm receiving this error? I made sure the key has no white spaces/line returns as mentioned in the

i am getting null pointer exception from String placeName = placeText.getText().toString();

筅森魡賤 提交于 2019-12-02 02:36:24
问题 Hi want to get the place name from the edit text and mark on map here is my code where i got null pointer exception please help me what i should do and where i am going wrong. as I am getting the place name from the edit text field in dialog box. View layout = View.inflate(this, R.layout.alertbox, null); AlertDialog.Builder dialog = new AlertDialog.Builder(this); dialog.setTitle("Enter the places"); dialog.setView(layout); dialog.setPositiveButton("Ok", new DialogInterface.OnClickListener() {