google-maps-markers

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

拜拜、爱过 提交于 2019-12-04 15:59:20
问题 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:

Access the drawable resource of MyLocation blue dot in Maps

大城市里の小女人 提交于 2019-12-04 15:54:39
I would like to get the same texture as the circle that indicates your position and bearing (blue) on the map in order to add other circles (in red) with the same texture and behaviour . What I have: I have access to all the params concerning the red point : LatLng, Bearing ... I used a map.addCircle to get the result displayed below. map.addCircle(new CircleOptions() .center(position1) .fillColor(Color.RED) .strokeColor(Color.WHITE) .radius(1.2) .strokeWidth(1 / 4)); Needs: I need the circle to be independant of the tilt and independant of the zoom , ie its size adapts to the zoom level and

How to save information of markers of Map v2 so that it can be retrieve on marker click

巧了我就是萌 提交于 2019-12-04 15:31:37
I am making an app which has map v2 and I am displaying multiple pins successfully. I have followed an tutorial which was just displaying the pin/markers on map v2. Through service I am getting information of Marker showing the Hotels location on map . The service is sending me the information which include Hotel Name, Location , Food , Services , rating and Latitude and longitude.so let me explain what I have done so far what I am doing is getting each hotel specification in my asynctask and in this I am calling the following method to add marker addMarker(Double.parseDouble(latitude), Double

Toggling on/off Markers in Google Maps API v3

大憨熊 提交于 2019-12-04 14:54:17
I'm having trouble getting the setMap(null); function that everyone seems to be recommending to work. I believe it may be a problem with the way I've implemented the markers. If someone could take a look and let me know if you see something wrong I'd greatly appreciate it. LINK: http://www.dougglover.com/samples/UOITMap/v2/ Please Note: Old link above, doesn't go anywhere. The basic problem is that if you want this to work you've got to make up your mind about what the markersTest object is supposed to hold. You can't seem to decide whether the elements in markersTest should be markers or

How to create Google Latitude like markers?

≯℡__Kan透↙ 提交于 2019-12-04 14:48:52
In my HTML5 app, I use Google Map v3 and add several markers on a map. It's easy to place new markers and to change icons but I'd like to be able to build markers like the one used in Google Latitude. Those markers are set up with an icon image and a nice border. Any ideas on how to do this ? DMKing You could do this server-side or since you are using HTML 5 and assuming you have the canvas available you could do this on the client-side. Below is a way to do it client-side using the HTML 5 canvas. Doing it server-side will vary by what language you are using but the technique would be similar.

Adding multiple addListener events to a Google Map form with geocoding

好久不见. 提交于 2019-12-04 14:38:31
I have created a Google Map form that lets users enter an address into a text field and geocode the entry. This then puts a marker on a map. This works fine, but I want to add an additional addListener so when the user clicks the map it will add another pin where they click. For some reason my 'click' addListener is not working. How would I have multiple add Listeners like that? I attached my current code: function initialize() { var mapOptions = { center: new google.maps.LatLng(40.7,-74.0), zoom: 13, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document

android.view.InflateException: Binary XML file line #30: Error inflating class <unknown>

こ雲淡風輕ζ 提交于 2019-12-04 14:12:00
I am running a application which opens up with a map, with a marker on it. On clicking on the marker I am trying to open a dialog with some fields in it. This is my code for marker click, public boolean onMarkerClick(Marker arg0) { Log.d("", "here"); View view = getLayoutInflater().inflate(R.layout.dialogview, null); view.setBackgroundColor(Color.LTGRAY); edtDate = (TextView) view.findViewById(R.id.edtDate); edtTime = (TextView) view.findViewById(R.id.edtTime); Dialog dialog = new Dialog(this, android.R.style.TextAppearance_Holo_WindowTitle); dialog.setTitle("Enter Details"); LayoutParams lp =

How to Focus at Marker in google map in android

女生的网名这么多〃 提交于 2019-12-04 13:54:10
问题 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)

Show google map marker depending on what zoomlevel you're on

馋奶兔 提交于 2019-12-04 13:17:07
I'm wondering if it's possible to set markers to be visible in a chosen zoom level for the Google Map API v3. I figured it's possible in the v2 of the API using the "Marker Manager" but can't find a way for the latest API. Example: Marker-1 -> (max_zoom:10, min_zoom:5) //will on be shown within zoom level 5-10 Marker-2 -> (max_zoom:15, min_zoom:10) //will on be shown within zoom level 10-15 As I'm developing an jQuery-plugin I only want to use the original API without add-ons. Thanks in advance! Supposing map is the object instanced to manage the gmap, i'd do something like this: var zoomLevel

How to add markers on a map as users opens the activity, and update the realtime location of each marker as users move?

不羁的心 提交于 2019-12-04 12:35:57
I have an activity in my app which has a Map in it and as users opens this activity from their devices, a marker is added showing their current location and then an inner Service class in which the code of updating the realtime location goes. Here's my code: mDatabase.child(rID).addChildEventListener(new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.getValue() != null) { Map<String, String> newAcceptedUser = (Map<String, String>) dataSnapshot.getValue(); pAccepted = newAcceptedUser.get("pName"); uidPAccepted = newAcceptedUser