maps

Normalization of coordinates to closest route

我的梦境 提交于 2019-12-11 17:22:06
问题 In my application I receive GPS coordinates which I use to draw route using HERE 's calculateRoute method and polyline. But results are poor and rarely accurate probably due to low accuracy of the measurements. Example of this behavior on the picture below - actual route should be only on the biggest, diagonal street. So my idea to circumvent this problem is to first 'normalize' these coordinates by approximating them to nearest street. My question is: does HERE API provides such method and

In Here-API how do we show downloaded region package NMAMapLoader in MapView?

∥☆過路亽.° 提交于 2019-12-11 17:10:00
问题 I downloaded and run map-downloader-ios-swift (https://github.com/heremaps/here-ios-sdk-examples/blob/master/map-downloader-ios) project and it worked well. After finished download 1 region package, how do we show that region in mapview without an internet connection? Also is it possible to add routes in that downloaded region in offline mode? Thank you. 回答1: In offline mode, cached map data is used for rendering, routing, searching, etc. So since you have downloaded the map region package of

Stick dom marker in here maps on zooming

牧云@^-^@ 提交于 2019-12-11 16:59:21
问题 I'm trying to add a truck Marker in the HERE Map. This marker is basically a truck icon. Here is my code. addDomMarker(posObj): void { const map = this.mapComponent.getMap(); (window as any).mymap = map; const domIcon = new H.map.DomIcon(truckIcon); this.truckMarker = new H.map.DomMarker(posObj, { icon: domIcon }); map.addObject(this.truckMarker); map.setCenter(posObj); } export const truckIcon = `<div class="truck-container"> <svg class="truck-marker" id="truck" ... // svg code </svg></div>`

for multiple Markers only Last Entry of database is showing on Map. how can i add multiple marker on map using this.?

你。 提交于 2019-12-11 15:55:13
问题 Here is my code. i have used jsp and mysql with jstl. i also tried using php but same happening. function Marker12() { var bounds = new google.maps.LatLngBounds(); var markers = [ <c:forEach var="row" items="${result.rows}"> ['<c:out value="${row.messname}" />', <c:out value="${row.lat}" />, <c:out value="${row.lang}" />, ], </c:forEach> ]; //var totmark=[]; var myOptions = { zoom: 5, center: new google.maps.LatLng(18, 74), mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps

Android Maps V2 Application Crashes on Android Phone

橙三吉。 提交于 2019-12-11 15:03:37
问题 I have made an app that uses Google Android Maps API V2 and I have followed every step in the guide provided by Google but it doesn't work unfortunely and it crashes every time I try to start it up, I have looked up similar problems here on stack overflow but I haven't find one that helps me unfortunately( and yes I am using an Android Phone and not a Emulator). The issue seem so be with it not finding MapView from the Google Play Services library even though i have added that library to my

Drawing thicker state borders and thiner county borders for US map using GADM shapefile

这一生的挚爱 提交于 2019-12-11 14:59:31
问题 I have an earlier post here on drawing US maps using shape file from GADM while at the same time removing color mapping onto the Great Lakes region. The issue was solved following suggestion by @Majid. Now, I further want thicker state boders and thinner county borders. I did so by plotting county-level choropleth map first and then add additional lays of non-filled state/nation-level border: library(sf) library(tidyverse) library(RColorBrewer) #for some nice color palettes # US map

Cloudmade and Leaflet: Multiple custom markers

懵懂的女人 提交于 2019-12-11 14:38:33
问题 I have followed the leaflet tutorial on how to create Layer Control and the custom markers: Markers:http://leafletjs.com/examples/custom-icons.html Control: http://leafletjs.com/examples/layers-control.html I am using the control code and i would like to add MULTIPLE custom markear to this. When applying the code it the map goes blank however with one marker it works.Any help or guidance would be great. This is my current code for multiple markers that breaks: I do get an error in the console

Markers are missing suddenly while rendering on here maps 2.5.3

我的未来我决定 提交于 2019-12-11 14:35:19
问题 I have developed an application where it displays collection of markeres on the navteq map.when i was working with navteq maps 2.2.3 everything was working fine, but as Navteq maps 2.2.3 does not support for Asynchronous behaviour i have switched to HereMaps 2.5.3 which supports Asynchronous behaviour. Now after switching to latest version i'm facing one strange problem. that is while rendering the markers on the map suddenly already rendered points/markers(some points) gets disappeared.this

How does one convert application.properties to application.yml for maps

北战南征 提交于 2019-12-11 14:22:33
问题 I tried this, it doesn't work, where am I going wrong? application.properties (works fine) document-contact={name:'joe',email:'joe.bloggs@gmail.com'} application.yml (doesn't work; stacktrace below) document-contact: name: 'joe' email: 'joe.bloggs@gmail.com' Java: @Value("#{${document-contact}}") private Map<String, String> contact; Stacktrace: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'consolidatedSwaggerDocumentationController': Injection of

adding border to CircleMarkers with leaflet and R

孤街浪徒 提交于 2019-12-11 14:11:54
问题 I would like to add border to the CircleMarkers. I used the following code. I can't find any function to add black border to the stroke. pal <- colorNumeric(palette = 'RdYlBu', domain = city_results$ratio) m <- leaflet() %>% addTiles() %>% setView(lng = median(city_results$long), lat = median(mean(city_results$lat)), zoom = 8) %>% addProviderTiles(providers$CartoDB) %>% addCircleMarkers(data = city_results, lng = ~long, lat = ~lat, radius = ~(Socioeconomic_status_group), color = ~pal(ratio),