google-maps-api-3

float and double datatype is good to store latitude and longitude? [duplicate]

别来无恙 提交于 2019-12-20 19:43:25
问题 This question already has answers here : What is the ideal data type to use when storing latitude / longitude in a MySQL database? (21 answers) Closed 4 years ago . I am storing latitude and longitude at the server side (JAVA Platform). To store those values, I am using float and double datatype at the server side. I came to know that float and double are not a recommended primitive datatypes (which is not recommended to use currencies in professional way), because float and double having

google map API v3 change marker icon on click?

删除回忆录丶 提交于 2019-12-20 18:00:55
问题 Following google documentation up to changing the marker icon was easy. But I'm stuck, I don't know how to change image when marker is clicked? My code so far: <script> function initialize() { var latlngPos = new google.maps.LatLng(<?php echo $event_google_map_coordinates; ?>); var mapOptions = { zoom: 16, center: latlngPos, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('googlemap_event'), mapOptions); var marker = new google.maps.Marker({

How to change location of my location button in google maps using swift

一世执手 提交于 2019-12-20 17:38:04
问题 I am using google maps in my project i want to show my location button a bit up how should i do that using swift 回答1: You can change the position of the MapControls by set the padding for your map view . let mapView = GMSMapView() mapView.isMyLocationEnabled = true mapView.settings.myLocationButton = true mapView.padding = UIEdgeInsets(top: 0, left: 0, bottom: 50, right: 50) It will change the padding of the my location control. From bottom 50px and from right 50px Refer the below screenshot

How to get the list of waypoints of a route displayed on the Google maps, through their API V3?

不羁岁月 提交于 2019-12-20 16:47:15
问题 The GDirections class of Google maps API helped me in "displaying" the route between two supplied coordinates. Now I want a list of ALL the coordinates on that route. Any hints on how to get this? EDIT Just now discovered http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsRoute Its overview_path property gives the list of ALL the waypoints of the route. Is DirectionsRoute the right class for this problem Or I am missing some point? EDIT - 2 With the help of

php + mysql + google map [closed]

末鹿安然 提交于 2019-12-20 15:37:25
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . i am using google map to create a dynamic google map that take locations(lat, lon) stored in the database using php mysql and display the selected

php + mysql + google map [closed]

╄→гoц情女王★ 提交于 2019-12-20 15:37:06
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . i am using google map to create a dynamic google map that take locations(lat, lon) stored in the database using php mysql and display the selected

Google Maps API V3 - Custom Tiles

怎甘沉沦 提交于 2019-12-20 13:36:42
问题 I am currently working on Google Maps API V3 over here If you zoom between 21 to 23, there will be an image overlay on the map. The image takes too long to load and I have decided to break it into different tiles for easier loading. I am using Automatic Tile Cutter to cut the image into tiles. I have problems with the script; var OrgX = 31551; // the Google Maps X value of the tile at the top left corner of your Photoshop document var OrgY = 50899; // the Google Maps Y value of the tile at

How to change the InfoWindow Background color

半腔热情 提交于 2019-12-20 12:46:09
问题 I'm facing the problem,My google Map API showing default InfoWindow with background color white.I want change the White color to Black color. REF CODE: google.maps.event.addListener(marker, 'mouseover', function() { infoWindow.setContent(html); infoWindow.open(map, marker); //infoWindow.setStyle("background-color: red"); }); 回答1: I came up with a simple solution. This might not be a very elegant solution but it works fine if you don't have huge styling needs. Since we can add our own html and

Server-side clustering for google maps api v3

做~自己de王妃 提交于 2019-12-20 12:36:34
问题 I am currently developing a kind of google maps overview widget that displays locations as markers on the map. The amount of markers varies from several hundreds up to thousands of markers (10000 up). Right now I am using MarkerClusterer for google maps v3 1.0 and the google maps javascript api v3 (premier) and it works pretty decent for lets say a hundred markers. Due to the fact that the number of markers will increase I need a new way of clustering the markers. From what I read the only

Is there a way to restrict the Google Places Autocomplete to search a city's streets?

那年仲夏 提交于 2019-12-20 12:27:13
问题 Can I restrict the search to a city's streets when using the Google Places Autocomplete ? 回答1: You can set the Autocomplete options to use geocode as the type, which will restrict the results that are returned to addresses: var input = document.getElementById( 'searchTextField' ); var options = { bounds: yourBounds, types: ['geocode'] }; autocomplete = new google.maps.places.Autocomplete( input, options ); There is no way to restrict the results to just streets, but this will largely achieve