google-maps-markers

How to add extra into text into flutter google map custom marker?

旧时模样 提交于 2019-12-03 11:36:12
问题 The problem is how to infuse text overlap on the custom google map marker with text which represents the vehicle registration number. I have tried to use this method to have the text overlay on the icon builder: (context) =>() But is not recognized at all. class MapsDemo extends StatefulWidget { @override State createState() => MapsDemoState(); } class MapsDemoState extends State<MapsDemo> { GoogleMapController mapController; //Map<PermissionGroup, PermissionStatus> permissions = await

How do I delete a marker on Google Maps?

早过忘川 提交于 2019-12-03 11:31:04
问题 I only know of one way: Right click and click 'delete me' How else can I delete markers on Google Maps? This is my code now: GEvent.addListener(marker, 'mousedown', function(e) { alert(e) if (e.button == 2){ alert('sss') map.removeOverlay(marker); } When i right-click, it alerts (40.23141543543321,114.3214121421) ; when I look at the API, I see this: mousedown(latlng:GLatLng) so I think that e is not an event, but a 'GLatLng' If I use the 'singlerightclick', nothing happens when i right-click

Android Google Map v2 - Starting activity when clicking on marker infoWindow

て烟熏妆下的殇ゞ 提交于 2019-12-03 10:02:31
I have seen that people are finding a lot of difficulties with this specific task and I am in need of help as well. I have successfully created Markers on a Map using the default code that Google has provided. But now I want to be able to click on "InfoWindow" to open a new activity so I can add more information. From this basic marker with Title and Snippet: http://mobisys.in/blog/wp-content/uploads/2013/04/Screenshot_2013-04-04-17-19-581.png Then to click on it and open a blank activity: http://tuts-authors.s3.amazonaws.com/mobile.tutsplus.com/Shane%20Conder%20and%20Lauren%20Darcey/2012/09

Google Maps Default Icons

天大地大妈咪最大 提交于 2019-12-03 09:47:15
问题 I am trying to get the current default Google Maps Icons. I am making a program with the Google Maps API and have set my DirectionsRenderer to suppress markers so I can make markers to set the specific icon. This is my current result: This is what I had before suppressing the default markers: Later in my program I will be adding waypoints so I would like to set markers like the ones above with the letter A, B, C, etc. with a different color, (like marker "A", which is green). I have visited

Google Maps: Border on Markers

喜你入骨 提交于 2019-12-03 09:08:27
问题 I'm trying to display photos as markers on Google Maps. This is no problem by redefining the marker as an image, but I want to put some sort of border or shadow to make them stand out better. Something like the Google photos would be best, but I guess this is too complicated, if at all possible. A simple 1px solid border would do fine. One option is to actually change the image, but this is not an option. Also, the images are different sizes so I can not put a black image as the shadow (1px

How to Focus at Marker in google map in android

痴心易碎 提交于 2019-12-03 09:02:00
I just want to know whether we can focus at added marker in android application or not. If yes, how? or is there any alternative way to get this task done. lets say I have added a marker using below code : map.addMarker(new MarkerOptions() .title(title) .snippet(snippet) .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)) .position(pos) ); how to focus at this marker with maximum zoom. and if I will add 1 more marker it should adjust zooming(maximum possible zoom) in such a way so that both marker will display at once. This is what I am trying to do but it is failing

In Google Maps V3, how can I get a draggable marker to pan the map?

穿精又带淫゛_ 提交于 2019-12-03 08:58:49
问题 I have found several V2 examples of how to pan the map while a marker is being dragged. For example: http://www.putyourlightson.net/projects/coordinates // create map and add controls var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); // set centre point of map var centrePoint = new GLatLng('53.34870686020199', '-6.267356872558594'); map.setCenter(centrePoint, 14); // add a draggable marker var marker = new

Create markers from JSON array php mySQL Google Maps v2 android

♀尐吖头ヾ 提交于 2019-12-03 08:57:11
I'm trying to create markers on Google Maps v2 from my mySQL database and it is not working. The map does come up but there are no markers. Can any one tell me what is wrong and what I need to change? I've also tried having the getDouble be getDouble(0) and getDouble(1) but I read somewhere to try 0 and 2. It also has a bunch of imports from multiple tutorials I've tried. I'll remove later. My Activity import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GooglePlayServicesUtil; import com.google.android.gms.maps.CameraUpdateFactory; import com.google

Drop marker slowly from top of screen to location on android map V2

我的梦境 提交于 2019-12-03 08:02:27
问题 I am using android maps v2works fine I can add and remove markers onLong Touch on locations. Problem: I would like to drop the marker slowly into the touched location i.e. I want the user to see the marker floating from the top of the screen to the point where it is dropped(touched location). Currently; the marker just appears on the touched location such that you have to lift you finger to see that it has been dropped. It would be nice to see it coming from the top of the screen. Thanks. 回答1

Rendering multiple Google Maps API V3 markers from JSON

戏子无情 提交于 2019-12-03 07:56:45
问题 Attempting to plot multiple markers using Google Maps API V3 from JSON output by PHP from DB. Map is initialized on page, however it does not populate with markers. Browser warns "Resource interpreted as Other but transferred with MIME type undefined."? Suggestions for further troubleshooting / debugging please. <!-- load points from database into Locations JSON --> $(document).ready(function () { $.getJSON("map-service.php?action=listpoints", function(json) { if (json.Locations.length > 0) {