marker

Add Marker on Android Google Map via touch or tap

断了今生、忘了曾经 提交于 2019-11-27 19:24:46
I am a beginner in Android Developer. I want to develop a Map Application using Google Map. Now, I want to add marker on the map via Touch or Tap on the Map. I do not know how to apply touch event to drop the marker on the map. Please tell me and, if it is possible, please give me some links or examples. Thank you and sorry for my English. user3066085 This code is Successful run I am working on that code this code is for Dynamic Draw I think this code help you more for Static or dynamic both places you can use this code double latval = Double.parseDouble(jsonobject.getString("lat")); double

How to add title, snippet and icon to ClusterItem?

丶灬走出姿态 提交于 2019-11-27 18:38:03
I had this activity: public class MapViewer extends Activity { private GoogleMap map; private Database db = new Database(this); protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapviewer); try { map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); if (map != null) { map.setMyLocationEnabled(true); map.setMapType(GoogleMap.MAP_TYPE_NORMAL); map.getUiSettings().setRotateGesturesEnabled(false); this.addMerchantMarkers(new MarkerOptions()); } } catch (NullPointerException e) { e.printStackTrace(); } } public

myLocationOverlay change the marker

笑着哭i 提交于 2019-11-27 13:50:03
how do i change the default blue animated marker for MyLocationOverlay in google maps? Step #1: Create a subclass of MyLocationOverlay . Step #2: Override drawMyLocation() and draw the marker however you like. Bear in mind that this method not only draws the marker, but "if the user's position moves near the edge of the screen, and we've been given a MapController in our constructor, we'll scroll to recenter the new reading". Thx @CommonsWare, you led me in the right direction. Spent quite a wile twiddling with this. The Javadoc on http://code.google.com/android/add-ons/google-apis/reference

How to specify the size of the icon on the Marker in Google Maps V2 Android

六月ゝ 毕业季﹏ 提交于 2019-11-27 12:49:24
问题 In may app i use Map from Google Maps V2 and in this map i am trying to add markers each Marker with an icon, but the marker is taking the size of the icon which is making the icon looks flue. How can i specify the size of the marker in dp so that i can control how it looks like on the map 回答1: Currently i think we cannot change the marker size, so u can add marker image in drawable and re-size something like this:, int height = 100; int width = 100; BitmapDrawable bitmapdraw=(BitmapDrawable

leaflet.js - Set marker on click, update position on drag

送分小仙女□ 提交于 2019-11-27 12:38:38
问题 for a small project I am working on, I need to be able to place a marker on a leaflet.js powered image-map and update the position of this marker, if it gets dragged. I use the following code to try this, but it fails. I get the error 'marker not defined'. I don't know why it's not working - maybe you guys could help me out? ;) function onMapClick(e) { gib_uni(); marker = new L.marker(e.latlng, {id:uni, icon:redIcon, draggable:'true'}; map.addLayer(marker); }; marker.on('dragend', function

How to hide “Navigation” and “GPS Pointer” buttons when I click the marker on the android google map

╄→гoц情女王★ 提交于 2019-11-27 11:51:57
When I click the marker on the google map, "Navigation" and "GPS Pointer" buttons come out.How can I hide those two buttons programatically in android development? For the button group you have outlined in red, you can disable it using the setMapToolbarEnabled() method in UISettings . From the documentation: Sets the preference for whether the Map Toolbar should be enabled or disabled. If enabled, users will see a bar with various context-dependent actions, including 'open this map in the Google Maps app' and 'find directions to the highlighted marker in the Google Maps app'. Code example to

Google Maps Api 3 Remove Selected Marker Only

十年热恋 提交于 2019-11-27 09:47:04
问题 I've 2 function as below: function addMarker() { marker = new google.maps.Marker({ position: Gpoint, map: map, draggable: true, animation: google.maps.Animation.DROP }); map.panTo(Gpoint); google.maps.event.addListener(marker, "rightclick", function (point) { showContextMarker(point.latLng); } ); $('.contextmenu').remove(); }; function delMarker() { marker.setMap(null); $('.contextmenu').remove(); }; So, as may understand I have a Context Menu having "Delete Marker" option on it. I am binding

where I can find the little red dot image used in google map?

半腔热情 提交于 2019-11-27 09:41:59
问题 I am looking for the red dots showing here I can find find plenty of push pins and shadows in various place. But cannot find this little dot.... Could someone help me? 回答1: Are you just trying to copy out the style of the markers? If you are using Chrome just press F12 for developer tools, go to resources, then choose Frames->Maps->Images. All of the images are shown there along with their locations. https://maps.gstatic.com/mapfiles/markers2/red_markers_A_J2.png I believe those are what you

Google Maps v2 Marker zOrdering - Set to top

寵の児 提交于 2019-11-27 07:27:22
I know there are a few threads around on this topic but i havent yet found a good enough solution. I NEED to place a marker over the top of all other markers. How do i do this? I have tried adding this marker before and after all other markers, however the ordering seems to be from bottom (front) to top (back) on the map view. This is not acceptable as I want to center on a marker which is in front of all markers. I know that Polygons can be zOrdered but I would MUCH prefer a nicely styled graphic! In-fact you can't order a Polygon over a marker! "The order in which this polygon is drawn with

JS Maps v3: custom marker with user profile picture

自闭症网瘾萝莉.ら 提交于 2019-11-27 04:26:51
I am struggling since 2 days with something I was thinking easy, on a map, I have to display a marker for each user with the user FB profile picture inside. I am wondering how I can have a result similar to this one? What I tried was really hackish. I put the FB picture as the marker icon I put a CSS class on the label of the marker I find the sibling to add this border and this arrow to decorate the user picture but it doesn't work when there is more than one marker on the map. .marker-labels { display: none !important; + div { background-color: $dark-gray; border: 2px solid $dark-gray;