google-maps-markers

How to draw polygon using hardcoded values in ngMap using angularjs

时光总嘲笑我的痴心妄想 提交于 2019-12-05 00:58:22
问题 I need to draw polygon on google maps using the hard coded values.I have used ngMap ( https://ngmap.github.io/ )and used drawing manager of ngMap to it, because i also want the user to draw polygon dynamically. if i use drawing manager,i am not able to draw polygon with hardcoded values. and also another thing , if the user put the marker on map. i need to get the co-ordinates of it. (for example:get the co-ordinates in alert box or console). can anyone please help me Plunker here: http:/

Google Maps Android API v2 detect long press on map and add marker not working

拟墨画扇 提交于 2019-12-05 00:21:06
I want to add a marker on map with long press. Toast in onMapClick() was display with normal tap. But long press is not working. Toast in onMapLongClick() is not displayed with long press. Also marker is not displayed on map. I'm using SupportMapFragment because I want to use my application on Android 2.x devices. I have tested my app on Nexus One which has Android version 2.3.7. This is my code. public class MainActivity extends FragmentActivity implements OnMapClickListener, OnMapLongClickListener { final int RQS_GooglePlayServices = 1; private GoogleMap myMap; Location myLocation; @Override

Changing z-index (z-order) of map marker for Maps V2 in Android

China☆狼群 提交于 2019-12-04 23:34:17
I have several markers shown on my map that are either close to each other or even over top of one another. I need to have one specific marker always on top. It doesn't matter if I add the marker to the map first or last, it often ends up being placed behind some markers. For some mysterious reason, Google Maps determines this. It needs to work with Google Maps for Android V2. The June 27th, 2016 release, v9.2.0, of Android Maps API v2 now supports a z-index - see announcement at https://developers.google.com/maps/documentation/android-api/releases#june_27_2016 . So make sure your maps/play

Gradually fade out a custom, map marker

旧街凉风 提交于 2019-12-04 22:29:21
I'm trying to gradually fade out a custom Google map marker. I've seen all the posts that say to just use the drop in code from the DevBytes video and replace the setPosition with setAlpha, which is what I have attempted to do. The problem is that whatever I do, my icon just goes white for the duration of the handler and then transparent upon completion, instead of gradually fading to complete transparency. gMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() { @Override public boolean onMarkerClick(final com.google.android.gms.maps.model.Marker marker) { if (marker.equals

Google Maps Api v3: How to change the Default waypoint markers in the Directions (set)Panel?

自古美人都是妖i 提交于 2019-12-04 21:20:43
How do you change the markers with custom markers active in the map in the directions panel and change the color aswell from the body? Any help much appreciated. The screenshot: http://i.stack.imgur.com/wYFoc.png Michel Ayres Just to keep alive @MrUpsidown comment and code alive: Short answer: you can't. Longer answer: don't use the directions panel. Create your own, with the information you need (from the directions service response) and add your custom markers. Nov 24 at 16:32 Fiddle var directionsDisplay; var directionsService = new google.maps.DirectionsService(); var map; var routeBounds

Cluster Marker Google Maps using geoCoder

限于喜欢 提交于 2019-12-04 19:36:55
Using this data var data = { 'address': [ { 'address': '7970 GLENTIES Ln' }, { 'address': '8022 Caminito Mallorca' }, { 'address': '2750 Wheatstone St # 26' }, { 'address': '335 49th St' } ] }; i manage to marker them but i was unable to cluster them. below the code that I've use. var markerArray = []; function initialize() { geocoder = new google.maps.Geocoder(); var center = new google.maps.LatLng(37.4419, -122.1419); var map = new google.maps.Map(document.getElementById('map'), { zoom: 3, center: center, mapTypeId: google.maps.MapTypeId.ROADMAP }); var address; var markers = []; for (var

How to track real time position using google map API?

落爺英雄遲暮 提交于 2019-12-04 19:24:59
I am planning to implement a vehicle tracking system. Can anyone explain how do i track the position of an android device using Google maps API .. Also if it is not android device, how do i collect the live Geological position of a device (android/iPhone/windows) again only through Google maps API. Can someone please help me with this ? Follow the steps:- You need to host a server which accepts latitude and longitude values seeded from android device you have to use google maps API also in the same web server. Develop an android application implementing location listener, create a server

Adding dynamic content to Google Maps marker

橙三吉。 提交于 2019-12-04 19:21:41
I am trying to create a google map with custom icon markers. I need to be able to add dynamic text to the actual marker. In other words is there anyway to add a div? I need to add prices from xml to the actual marker.. I hope this makes sense. ANY HELP would be greatly appreciated or if anyone can point me in the right direction. Thanks! MY JQUERY: function addMarker() { for (var i = 0; i < markers.length; i++) { // obtain the attribues of each marker var lat = parseFloat(markers[i][0]); var lng = parseFloat(markers[i][1]); var trailhead_name = markers[i][2]; var myLatlng = new google.maps

Non-ASCII title for android map marker

你离开我真会死。 提交于 2019-12-04 17:18:34
I would like to be able to add a marker with a title that has only non-ASCII characters: marker = map.addMarker( new MarkerOptions() .title("אני") .position(latlng) ); Unfortunately the tile doesn't show up, only an empty info window. First I thought that there is a problem with the Hebrew characters in general, but they seem to be fine, because if there's ASCII text in the BEGINNING of the title, then it works: .title("me אני") However it doesn't when the Hebrew is in the beginning: .title("אני me") I found a hack that seems to work, but still waiting for a real solution. If I prepend an

In Google Maps getBoundingClientRect gives Unspecified Error in IE

妖精的绣舞 提交于 2019-12-04 16:05:15
Relating to question in: Unspecified Error from Google Maps API on IE8 In function function Mp(a,b){ .. } the following line of code triggers an error var e=a.getBoundingClientRect(); To replicate this error Make a Google Map page (make sure it is tall enough that you've spare space to scroll the page, don't make the map full-screen) Place a Marker Open the app in IE ( I tested in 10) in debug mode When page loads, click on a marker such that it shows the info-window i.e. the pop-over Try scrolling the page You'll get the error. getBoundingClientRect(), an IE feature which returns positions of