google-maps-api-3

Performance benchmark of native android map vs webview map, what parameters can be included in the benchmark

前提是你 提交于 2019-12-23 02:35:00
问题 I am trying to compare native google maps (v2) vs the embeddable HTML version encapsulated in a webview on android. While it's pretty evident that the native maps are smoother and faster, I must prove that somehow. I have been searching on the internet for quite some time and did not seem to find any existing benchmarks. Does anybody know someone who actually done something similar? I am already thinking of creating such benchmark of my own, but how can the performance actually be measured?

ngFor not updating when @Input updated from google map marker event

孤人 提交于 2019-12-23 02:28:52
问题 I'm trying to build a simple app with angular2, I have the below component: @Component({ selector: 'map-menu', templateUrl: './angular-app/components/map-menu.html' }) export class MapMenuComponent { @Input() selectedMarkers: Array<google.maps.Marker>; constructor() { // setInterval(() => { // console.log(this); // }, 1000); } } when my map-menu.html is: <ul class="nav nav-sidebar"> <li *ngFor="#marker of selectedMarkers #i = index"><a href="#">{{marker.data.name}}</a></li> </ul> and in my

Remove Google maps markers by click button again using JavaScript

浪子不回头ぞ 提交于 2019-12-23 02:18:19
问题 I use geocoding to allow the user to navigate to a specific place and then add markers in a specific radius to this navigated point. If the user clicks on the button again and wants to navigate to another place it should remove all the markers of the first request. I have to say that the navigated point is marked with a blue marker and the others are marked with a red marker. I use this code to do it: // global var previousTarget = 0; var markers = new Array(); // All my markers are stored

Google Maps API: Is there any way to show POI markers (establishments) without making them clickable and having the info window pop out? [duplicate]

流过昼夜 提交于 2019-12-23 02:13:21
问题 This question already has answers here : disable clickable landmark on google map (6 answers) Closed 3 years ago . Disable point-of-interest information window using Google Maps API v3 This question shows the problem of having clickable establishments (POIs) on your map and how to remove them.... but is there any way to keep the POIs but disable the info windows (or even better, perform a custom action, such as going to your own page that refers to that business)? Any help is appreciated. 回答1

Recalculate markercluster onclick of filter

孤街浪徒 提交于 2019-12-23 01:58:05
问题 JS FIDDLE HERE: http://jsfiddle.net/useyourillusiontoo/g77np63c/1/ I've created a google map that plants markers down and allows my to filter then with checkboxes without the page or map reloading. Yay! Next I added marker cluster which worked too. However, when I now click on my markers the cluster doesn't update. That is.. the number inside the cluster doesnt change to reflect markers that are being hidden/displayed. When I zoom in the markers are still being hidden/displayed but its just

Google Maps V3 (PHP/MYSQL with custome infobox)

半腔热情 提交于 2019-12-23 01:41:01
问题 I'm using google maps with PHP/MSQL, i've read the documentation on google and take the code from there. I want to display custom box like this example. Everything works fine with my code, except for the text inside the box, i've always the text that is actually the last entry on my database... how to manage this? var customIcons = { 0: { icon: 'gif_blue.gif', shadow: 'gif_blue.gif' }, 1: { icon: 'gif_green.gif', shadow: 'gif_green.gif' } }; function initialize() { var map = new google.maps

Is there any way to disable the Marker Clusterer for less than defined marker counts?

℡╲_俬逩灬. 提交于 2019-12-23 01:29:12
问题 I want my Marker Clusterer; not to cluster markers less than 4 or something. It is clustering all the markers even for 2 markers. Is there any possible way to set it? 回答1: The option you want is not available with MarkerClusterer, but it is an option if you use an an enhancement named: MarkerClustererPlus. It is essentially a Google Maps v3 upgrade of the original v2 MarkerClusterer, which was then further enhanced and extended by Gary Little. It functions pretty much the same as the original

Trigger places_changed in Google maps from submit button

蓝咒 提交于 2019-12-23 00:53:32
问题 I am wanting to trigger my placed_changed function when a submit button is clicked. So here is what I have, I have a searchbox I assign using google.maps.places.SearchBox and once I click enter with the search box on focus it triggers the event: google.maps.event.addListener(searchBox, 'places_changed', function() { runMainPopulation(searchBox.getPlaces()); }); Which runs the next function. Now what I am trying to do is get this function to run once I click a search button or I click enter on

InfoWindows on Markers in StreetView

折月煮酒 提交于 2019-12-23 00:50:13
问题 According to the Google documentation, when you create a marker on a gmap the marker is also 'copied' onto the StreetView version of the map. However, onClick event binding are not copied (or at least don't appear to be), so I can't open the InfoWindow on the marker when in StreetView. Ideally I'd actually be able to define different content for the StreetView version of the InfoWindow, but right now I can't even get the same InfoWindow to open. I'm using code from the Google examples to

Server-side checking of a point's existence inside a polygonal area using Google Maps API v3

有些话、适合烂在心里 提交于 2019-12-22 20:31:12
问题 The logic is: user is editing an existing polygonal area of which extreme points are stored in the database. After editing the modified co-ordinates are updated in the database. Now I need to find whether a certain point exists inside the modified polygon or not. For that I'm assuming I have to do the server-side checking. The client-side checking is easily done by javaScript and that I've done already. The real problem I'm having is to check this on the server-side. Any suggestions? 回答1: I