google-maps-api-3

Making own Android App default for map intents

≡放荡痞女 提交于 2020-01-06 23:46:07
问题 I have been working on an android application which uses google maps it is map related application. i want my to be able to handle implicit intents like if user click on map link like Latitude and longitude my app should handle the intent and show that position on map. Like default Google Maps Application. Is it possible then what piece of code for intent specific activity? 回答1: Add an intent-filter in the Manifest so your app can respond to map URLs: <intent-filter> <action android:name=

How to write a conditional to detect pegman location and create popup box in GoogleMaps?

不想你离开。 提交于 2020-01-06 20:18:01
问题 I'm working on a simple game in HTML and JavaScript using the GoogleMaps API. The code I have as of now displays the map view on the left side of the screen and street view on the right side of the screen. As you move the arrow keys around, the pegman (that's the little guy that moves around the streets in GoogleMaps) rotates and moves forward and back according to the key pressed (this is a default GoogleMaps feature). The gist of the game is that once the pegman reaches "Point B", you've

How to write a conditional to detect pegman location and create popup box in GoogleMaps?

僤鯓⒐⒋嵵緔 提交于 2020-01-06 20:16:16
问题 I'm working on a simple game in HTML and JavaScript using the GoogleMaps API. The code I have as of now displays the map view on the left side of the screen and street view on the right side of the screen. As you move the arrow keys around, the pegman (that's the little guy that moves around the streets in GoogleMaps) rotates and moves forward and back according to the key pressed (this is a default GoogleMaps feature). The gist of the game is that once the pegman reaches "Point B", you've

Put marker on country

佐手、 提交于 2020-01-06 20:08:01
问题 I have a bunch of country names. Like hundreds. I want to add a marker on each of the countries that I have. If I use geocoding it says I reach the limit of requests allowed to geocode my names. So isn't there an entire "client way" of doing this without contacting the server for coordinates of the country? 回答1: You can create a kml file with the countries you want and their coordinates and then consume this in your map code. KML howto var map = new google.maps.Map(document.getElementById(

How to read KML file

≯℡__Kan透↙ 提交于 2020-01-06 19:59:44
问题 I have KML file and I want to read this file and to do some changes in the KML in run time ( to create the coordinates and then to update the map ) and then to show it in Google maps. How I can read the KML file to my application ? 回答1: Use an alternative KML parser, eg http://code.google.com/p/geoxml3/ 来源: https://stackoverflow.com/questions/11028584/how-to-read-kml-file

Error loading multiple values on a SQL Table Google Maps

好久不见. 提交于 2020-01-06 19:38:11
问题 I'm with a project on Google maps, that I want to save routes and Waypoints on a map, the problem is that I can sabe the routes on the database, but can't load all of them on the map, I can only load one Route, and I want to load multiple routes. For you undertand access this example: Click on the map to create the start point, and click again to create the end point, them, click on save waypoints This is my codes index.htm This is a print of my table OBS: This is only a part of my code, to

Removing Rectangle from Map

坚强是说给别人听的谎言 提交于 2020-01-06 19:24:55
问题 I am trying to create a marker that will create a rectangle on click and then remove the rectangle on the next click. The rectangle is correctly being inserted into the map but it is not being removed on the next click. What should I change to make it so that the rectangle is correctly removed? var myOptions = {zoom:11,center:new google.maps.LatLng(37.55020520861464,126.98140242753904),mapTypeId: google.maps.MapTypeId.ROADMAP}; map = new google.maps.Map(document.getElementById('map'),

Google Maps API push Marker Lat/Lng on click to array for line path

梦想与她 提交于 2020-01-06 19:01:15
问题 What I am trying to accomplish is when a user clicks a marker, the latlng of that marker is seen as the first latlng of a line, which could have multiple destinations. This is my marker syntax to push the marker that is clicked to the array: var originPoint = [] for (var i in points) { var p = points[i]; var latlng = new google.maps.LatLng(p[1], p[2]); var marker = new google.maps.Marker({ position: latlng, icon: points[i][3], zIndex: p[5], title: p[0] }); overviewMarkers.push(marker) google

Google Maps API push Marker Lat/Lng on click to array for line path

試著忘記壹切 提交于 2020-01-06 18:58:56
问题 What I am trying to accomplish is when a user clicks a marker, the latlng of that marker is seen as the first latlng of a line, which could have multiple destinations. This is my marker syntax to push the marker that is clicked to the array: var originPoint = [] for (var i in points) { var p = points[i]; var latlng = new google.maps.LatLng(p[1], p[2]); var marker = new google.maps.Marker({ position: latlng, icon: points[i][3], zIndex: p[5], title: p[0] }); overviewMarkers.push(marker) google

plotting 100k latitude-longitude locations on map

冷暖自知 提交于 2020-01-06 17:58:45
问题 I have about 100k locations stored in a MySQL server. I want to plot this in a map, but when I export it to a .csv file and then convert to .kml file, the file size exceeds 20mb, whereas Google Map API has limits of 3mb for .kml file. The .csv file is about 2.5mb, but I cannot load .csv files into Google Map. Is there any way I can do load the locations to a map? 回答1: Use Google Fusion Tables - they support 100,000 points per layer and 5 layers in toto . They are lightning fast too as you