maps

Google Places API - android

瘦欲@ 提交于 2019-11-28 14:34:46
I am making an android application that needs to search in my local area within 10km and display the results onto a map using pins, For example: "Starbucks", "Wallmart", Shopping mall, etc. The search word that i specify in my activity class. And to be clear: I do NOT want to open the search in Google maps, i want it to display the results inside MY own application. But i get an error at the code that executes the search. The error comes up on the following things: Url: url cannot be resolved or is not a field Execute: The method execute() is undefined for the type HttpRequest Response:

Data-driven cluster colour with mapboxgl

时间秒杀一切 提交于 2019-11-28 14:25:52
I am trying to draw circle which colour depends on a "group" attribute in my geojson. I followed a simple example with these colours: map.addSource("data", { type: "geojson", data: url, cluster: true, clusterMaxZoom: 12, // Max zoom to cluster points on clusterRadius: 20 // Radius of each cluster when clustering points (defaults to 50) }); map.addLayer({ 'id': 'population', 'type': 'circle', 'source': 'data', 'paint': { // make circles larger as the user zooms from z12 to z22 'circle-radius': { 'base': 1.75, 'stops': [[12, 2], [22, 180]] }, // color circles by ethnicity, using a match

目标检测之 Fast R-CNN

人盡茶涼 提交于 2019-11-28 14:05:48
论文地址: Fast R-CNN 代码地址: rbgirshick/fast-rcnn Fast R-CNN是在 R-CNN 的基础上进行的改进,大致框架是一致的。总体而言,Fast R-CNN相对于R-CNN而言,主要提出了三个改进策略: 1. 提出了RoIPooling,避免了对提取的region proposals进行缩放到224x224,然后经过pre-trained CNN进行检测的步骤,加速了整个网络的learning与inference过程,这个是巨大的改进,并且RoIPooling是可导的,因此使得整个网络可以实现end-to-end learning,这个可以认为是Fast R-CNN相对于R-CNN最大的改进之处。 2. 采用了Multi-task loss进行边框回归,这个在R-CNN中也有这方面的实验。 3. 利用了截断的奇异值分解(Truncated SVD for faster detection)加速了网络。 下面图1是 Fast R-CNN的总体框图: 图1 Fast R-CNN网络架构 这个图已经表达的很清楚了,但是还是有些细节需要说明一下,如图2所示: 图2 Fast R-CNN 流程图 现在就按照图2的流程进行讲解。首先是读入一张图像,这里有两个分支,一路送入FCN,输出 feature maps,另一路通过selective

Custom, Disabled and Blank Map in android

天大地大妈咪最大 提交于 2019-11-28 13:00:16
I want to display only the radius part of marker on map and rest of the map must be blank. Like if Marker radius is 5 KM and i want that only that radius part of the map must be visible to user and rest of the map must be blank. I have read about Google Map Overlays and also search about various SDK Like MapBox and Skobbler but none of them provide the functionality that i want. In the image you can see that only some part around the marker is visible and rest is blank. I want to achieve this functionality in android Maps. If anyone has any solution or idea, please let me know. Thanks. antonio

Multiple “InfoWindow” for array of “markers” on Google Maps?

痴心易碎 提交于 2019-11-28 12:59:01
问题 Using Google Maps API to add an infoWindow to each marker. Markers come from an array. Although, infoWindow only shows up for the first marker, not the others. Why? Thanks. function set_markers(array) { var mapOptions = { zoom: 13 } for (var i = 0; i < array.length; i++) { var single_location = array[i]; var myLatLng = new google.maps.LatLng(single_location[1], single_location[2]); var marker = new google.maps.Marker({ position: myLatLng, map: map, title: single_location[0] }); var infowindow

Changing StreetView<->Satellite Google Maps Android

人盡茶涼 提交于 2019-11-28 11:46:35
i wanna switch my GoogleMaps view between StreetView and Satellite via menubutton. Here's my code: public boolean onCreateOptionsMenu(Menu menu){ menu.add(0, 0, 0, "StreetView"); menu.add(0, 0, 1, "Satellite"); return true; } public boolean onOptionsItemSelected (MenuItem item){ switch (item.getItemId()){ case 0: mapView.setStreetView(true); return true; case 1 : mapView.setSatellite(true); return true; } return false; } Won't work.. what do i wrong? Thanks, prexx When you say it doesn't work, we really need more info to try and help you! Does it crash, does it stay on Street/Sat View or just

Show the value of a geom_point using geom_text

本秂侑毒 提交于 2019-11-28 11:03:07
问题 Using this nice code from here: countries <- structure(list(country = structure(c(5L, 6L, 3L, 4L, 10L, 8L, 11L, 7L, 1L, 13L, 9L, 12L, 2L), .Label = c("Australia", "China", "France", "Georgia", "India", "Ireland", "Malaysia", "Poland", "Qatar", "Singapore", "South Africa", "Spain", "USA"), class = "factor"), Latitude = c(20.593684, 53.142367, 46.227638, 32.165622, 1.352083, 51.919438, -30.559482, 4.210484, -25.274398, 37.09024, 25.354826, 40.463667, 35.86166), Longitude = c(78.96288, -7.692054

Here Maps JavaScript API 3.0 Explorer How to set marker color

做~自己de王妃 提交于 2019-11-28 10:40:18
问题 I can't find any documentation or examples for setting a markers colour in version 3.0 API. you could do this with the 2.5, do any one know if marker colour is supported anymore function addMarkersToMap(map) { var parisMarker = new H.map.Marker({ lat: 55.560789, lng: 12.981141 }); map.addObject(parisMarker); } 回答1: As stated in the example in the API Explorer, creating an H.map.Marker without specifying an icon results in a default image. If you need to have different colored icons, you will

How to divide a map into zipcodes using d3, javascript, and a json file?

心不动则不痛 提交于 2019-11-28 10:29:28
I'm trying to create a nyc map with zipcode areas I can color in based on census data (like color an area red if majority white or blue if majority nonwhite). I am simply using one of the shape files I found online from here ( https://data.cityofnewyork.us/Business/Zip-Code-Boundaries/i8iw-xf4u/data ). I converted the shp file to a geojson and then a topojson file. I'd appreciate it if someone could look at my code below, and let me know how I can go about doing this. Code: <!DOCTYPE html> <meta charset="utf-8"> <style> </style> <body> <script src="//d3js.org/d3.v3.min.js" charset="utf-8"><

Get list of all intersections in a city

强颜欢笑 提交于 2019-11-28 10:17:20
What is the best source and way to get a list of all intersections in a major city? tyr If one doesn't mind a few false positives the following Overpass API script gets road intersections out of OpenStreetMap data pretty easily: http://overpass-turbo.eu/s/QD (the script can't detect false intersections – where only two lines meet, though, e.g. when a road is represented by multiple way objects in the OSM data) In case that the script goes offline a more readable version directly here: Dependent on which kind of ways you are interested in, add the types of ways which should not count as