google-maps-markers

How to get markers inside an area selected by mouse drag?

一个人想着一个人 提交于 2019-12-04 06:59:55
In Brief I want to find all the markers which lie within a rectangular area created by dragging the mouse over the map. Is this feature supported by any jQuery plugins or something else? If not, I would like to implement this in my project. I think it would be cool. Details I am using Google Maps v2 because I want to support IE 6 in my project. I am a beginner in Maps and went through the Developer's guide section and some basic demos and other SO questions. Here is my idea so far - User clicks on a "Select an area" button in the controls section of the map. This calls disableDragging() and

googleMap marker rotation position changes

只愿长相守 提交于 2019-12-04 06:30:32
问题 I am using overlay as marker, and here is my below code which I created. <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Label Overlay Example</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> function initialize() { var latLng = new google.maps.LatLng(40, -100) , map = new google.maps.Map(document.getElementById('map_canvas'), { zoom: 15, center: latLng, mapTypeId:

Google Maps API: reverse geocoding and address printing

廉价感情. 提交于 2019-12-04 05:45:40
问题 I created a map with a bunch of different locations, each with a type of marker and a title/description. What I'd like to do is extract from lat/lng the relative address. I found this function which should do what I'm looking for.. but I can't understand how to apply it to my existing code. Here's my fiddle. I'm looking for a way to output the address here: infoWindow.setContent('<h3>' + this.title + '</h3>' + data.description); Should be something like infoWindow.setContent('<h3>' + this

Map marker info window without small triangle at bottom

南笙酒味 提交于 2019-12-04 05:14:56
问题 I need to show an Infowindow of a Google map marker without the small triangle at the bottom. Please check the image which I have attached. I tried by setting by changing setInfoWindowAnchor but it didn't work. Can anyone help me on this? marker_info.setInfoWindowAnchor(0,0) 回答1: In order to use the speechbubble, use the getInfoContents() override. In order to not use the speechbubble, use getInfoWindow() override. Example 1: public class MyCustomInfoWindowAdapter implements GoogleMap

Display .gif image marker in google maps V3

左心房为你撑大大i 提交于 2019-12-04 05:04:50
问题 Google Maps V2 supported all gif image markers to display in map. Now I'm migrating from V2 to gwt-maps-3.8.0 where .gif markers are displaying as constant markers. I found some similar questions but I didnt got exact thing which i'm looking for. String iconName = "Fire.gif"; MarkerOptions markerOptions = MarkerOptions.create(); markerOptions.setDraggable(true); MarkerImage image = MarkerImage.create(iconName); Marker marker = Marker.create(markerOptions); marker.setPosition(LatLng.create(30

Android, cannot resolve method getMap() [duplicate]

家住魔仙堡 提交于 2019-12-04 04:22:30
问题 This question already has answers here : Cannot resolve method getMap() (2 answers) Closed last year . I have problem with this code, "cannot resolve method getMap(). I dont find where is the problem, please need help with code, I use Android Studio and need to take markers locations of mySQL with Json. googleMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.googleMap)).getMap();` And here is full code public class MainActivity extends FragmentActivity { private

Same parameters for Apple Maps and Google Maps API?

北城以北 提交于 2019-12-04 03:20:40
On iOS 6 devices like the iPhone and iPad, as well as the latest Mac's, a link to maps.apple.com/maps?q=cupertino is opened in Apple's native mapping application. On non-Mac computers and other devices, it leads to maps.google.com/maps?q=cupertino instead. This is a welcome functionality for developers, however, is Apple's API supported by Google Maps? In other words, do all of the following Apple Maps parameters translate perfectly to something in Google Maps on the web? q= The query parameter. near= The location part of the query. ll= The latitude and longitude points for the map center

Google Maps API v3 - GIcon is not defined

☆樱花仙子☆ 提交于 2019-12-04 02:22:37
I know they are some issues from v2 to v3 what can i do here to fix it? GIcon is not supported by v3? // Google-Map icon object var gMapIcon = new GIcon(G_DEFAULT_ICON); //change to new google.maps.MarkerImage();??? // does icon exist if ( mapElements[lMapElementIndex]['icon'].toString().length > 0) { gMapIcon.image = html_entity_decode(mapElements[lMapElementIndex]['icon']); gMapIcon.shadow = ""; iconHeight = mapElements[lMapElementIndex]['iconheight']; iconWidth = mapElements[lMapElementIndex]['iconwidth']; gMapIcon.iconSize = new GSize(iconWidth,iconHeight); gMapIcon.iconAnchor = new GPoint

Unable to get GoogleMap OnMarkerClickListener to work

两盒软妹~` 提交于 2019-12-04 00:09:42
Using V2 maps. Got it all basically working, including adding of markers. However, I need to take action when the marker is tapped, so I've installed a handler: thisMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { // Take some action here return true; } } ); Only problem is - onMarkerClick() never gets called at all. Cannot see why - tried creating the listener when the map was originally created and also after the marker is put in place, no difference. ? Shawn Lien This works fine for me: GoogleMap mMap; Marker marker

Google Maps Over Query Limit but have Long and Lat

大城市里の小女人 提交于 2019-12-03 21:57:23
I have the coordinates (Long & Lat) that I'm having PHP insert all of them but I don't know how to change the javascript to correct the over query limit error. here is the code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title></title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="markerclusterer.js"></script> <script type="text/javascript"> var map; //marker clusterer var mc; var mcOptions = {gridSize: 20, maxZoom: 17}; //global infowindow var infowindow = new google.maps.InfoWindow(); //geocoder