maps

Clickable Google Maps marker in Fragment

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 07:28:09
问题 What I am trying to accomplish here is be able to show a AlertDialog when I click on a marker that is dynamically added on load (call an API, get positions and show them on map). This is done in the fragments onCreateView . The map loads here: @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); FragmentManager fm = getChildFragmentManager(); mapFragment = (SupportMapFragment) fm.findFragmentById(R.id.map_container); if

Geocoding Service: You have exceeded your daily request quota for this API

放肆的年华 提交于 2020-01-06 07:25:55
问题 I was entering address in database and map work perfectlly and just suddently map crashed and autocomplete textview cannot read address. In console I get this error Geocoding Service: You have exceeded your daily request quota for this API. For more information on usage limits and the Google Maps Javascript API services please see: https://developers.google.com/maps/documentation/javascript/usage _.Hb @ js?key=AIzaSyAPQXi7ZBZ73SPXi7JfHycSCi30thvQGCg&libraries=places&libraries=geometry:39

使用Javascript从Google Places搜索api获取纬度和经度

删除回忆录丶 提交于 2020-01-06 03:42:29
如何使用谷歌地图搜索框api从搜索到的位置获取经度和纬度. 我使用与谷歌演示相同的代码 – https://developers.google.com/maps/documentation/javascript/examples/places-searchbox 搜索代码: <script type="text/javascript"> //自动搜索 function initMap() { var input = document.getElementById('address_search'); var places = new google.maps.places.Autocomplete(input); google.maps.event.addListener(places, 'place_changed', function () { var place = places.getPlace(); var address = place.formatted_address; var latitude = place.geometry.location.A; var longitude = place.geometry.location.F; var mesg = "Address: " + address; mesg += "nLatitude: " + latitude

使用Javascript从Google Places搜索api获取纬度和经度

♀尐吖头ヾ 提交于 2020-01-06 03:42:06
如何使用谷歌地图搜索框api从搜索到的位置获取经度和纬度. 我使用与谷歌演示相同的代码 – https://developers.google.com/maps/documentation/javascript/examples/places-searchbox 搜索代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 <script type= "text/javascript" > //自动搜索 function initMap() { var input = document.getElementById( 'address_search' ); var places = new google.maps.places.Autocomplete(input); google.maps.event.addListener(places, 'place_changed' , function () { var place = places.getPlace(); var address = place.formatted_address; var latitude = place.geometry.location.A; var

Offline Geographical Maps in Web Application after converting .osm to .map

北战南征 提交于 2020-01-05 07:04:20
问题 I have this very basic requirement for providing offline maps in my web application. My web-application cannot access internet and hence all online API's for showing map is ruled out completely. After doing research,I downloaded the .osm.pbf format file for the desired location(Say a particular city). I converted .osm.pbf to .osm file Next step I generated tiles using this .osm file. The tiles are stored on my local directory. My final Step is to show these tiles as a map in web-browser

Display traffic data with maps

不羁的心 提交于 2020-01-05 05:57:11
问题 I am trying to show traffic information on OpenStreetMap. Considering that the traffic information is a value from 0 to 3 (wich means bad, regular and free) and. also consider that value is changing in a certain frequency. Does anyone has a suggestion to make this work? Maybe drawing polylines in the map, I prefer to stay simple. My aplication use Leaflet maps and node.js 来源: https://stackoverflow.com/questions/45312914/display-traffic-data-with-maps

show leaflet marker popup from outside of map dynamically

最后都变了- 提交于 2020-01-05 02:03:48
问题 I am using Leaflet javascript library to show some earthquake information. You are able to see few red circles on map. When you click that red circle it will display few details in popup. I want to show the popup when you click the link from outside of map. This (answer) is useful. But, I want to achieve it without ID? I mean if i have more than 30 markers on map and also I don't have any ID, just class names in my links. How do I trigger popup when I click a link from outside of map? This

show leaflet marker popup from outside of map dynamically

穿精又带淫゛_ 提交于 2020-01-05 02:02:09
问题 I am using Leaflet javascript library to show some earthquake information. You are able to see few red circles on map. When you click that red circle it will display few details in popup. I want to show the popup when you click the link from outside of map. This (answer) is useful. But, I want to achieve it without ID? I mean if i have more than 30 markers on map and also I don't have any ID, just class names in my links. How do I trigger popup when I click a link from outside of map? This

android different info window for each marker in google maps

喜夏-厌秋 提交于 2020-01-04 12:46:31
问题 I am using a for loop to make markers on maps based on locations retrieved from database. I have a layout with two TextViews that i want to fill with the marker's name and address(retrieved from database). I tried using googleMap.setInfoWindowAdapter() but all it did was changing the layout for all markers altogether (which is obviously NOT what i need). So is there a way to allow me to change the info window of each marker independently? 回答1: Implement onMarkerClickListener. Get the marker

Not able to move map after starting Navigation SKMAPS

*爱你&永不变心* 提交于 2020-01-04 05:21:07
问题 I had added SKMAPVIEW as subview to my UIView, After getting the start and end coordinates, I had calculated route and started navigation.. while calculating the route I'm able to move the map and zoom as my wish. But when I started navigation I'm not able to move the map, but I'm able to zoom in or zoom out in the map.. what should I do in order to move the map after starting the navigation... ??? Thanks in advance... And also I want to rotate the navigation arrow according to the current