google-maps-markers

RichMarker for Google Maps v3 - Click falls through marker

拜拜、爱过 提交于 2019-11-28 09:06:28
问题 I am using RichMarker for Google Maps v3 as found at https://googlemaps.github.io/js-rich-marker/reference.html I have successfully been able to register clicking on the marker with this code: google.maps.event.addListener(this.richMarker, 'click', function(event) { console.log("click made on marker"); }); However the click also falls through the marker, so it registers a click on whatever falls behind it. ie the map, if it has a handler: google.maps.event.addListener(map, 'click', function

InvalidValueError: not an instance of HTMLInputElement

孤街浪徒 提交于 2019-11-28 08:12:35
FYI, I'm not a JavaScript Ninja but felt like I'll become one when I did a lot of things based on Google Maps recently. I implemented a map. User can search for google places and place a marker for it. there's a text box for that. Or user can click on the map to place a marker to the place he's looking for or drag the marker. Code remains the same. Design changed. Input field's id and name also same. No change to JS code. But this thing ain't working. Here's the website Google map is producing an error. InvalidValueError: not an instance of HTMLInputElement I tried solution given here But

Google Maps with Multiple Information in one marker

假如想象 提交于 2019-11-28 06:49:21
问题 I am developing a web application that contains some information about place. That place may have more than one agenda. Can I show more information in one marker, such as stack balloon? This is my maps http://petamajelis.org/maps/index.php This is my data http://petamajelis.org/maps/ajax2.php there are some places that have more than one agenda, and I want to show all of that agendas in one marker if the latitude and longitude are same. this is my code to show marker depend on database, I put

Get Latitude and longitude of marker in google maps

给你一囗甜甜゛ 提交于 2019-11-28 06:38:17
I'm using the following code to create a map and attach a marker to it. I'm also adding a marker listener where I need to get the longitude and latitude of the marker position after dragging. What it does is returnning my current location not the location of the marker after drag. Any help with this part?! package com.example.mysample; import com.google.android.gms.common.GooglePlayServicesUtil; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.GoogleMap.OnMarkerDragListener; import com.google.android.gms

adding multiple marker on google map in android

余生长醉 提交于 2019-11-28 06:38:13
I am triyng to add multiple marker on google map. Here is my code section public class GoogleMap extends MapView { MapController mc; MapView mapView; GeoPoint p; @Override public void onCreate(Bundle savedInstanceState) { .... double lat = Double.parseDouble(bundle.getString("paramLat")); double lng = Double.parseDouble(bundle.getString("paramLong")); mc = mapView.getController(); p = new GeoPoint( (int) (lat * 1E6), (int) (lng * 1E6)); mc.animateTo(p); mc.setZoom(17); //---Add a location marker--- MapOverlay mapOverlay = new MapOverlay(); List<Overlay> listOfOverlays = mapView.getOverlays();

Avoid geocode limit on custom google map with multiple markers

半世苍凉 提交于 2019-11-28 06:07:17
I've created a custom map with around 150 markers. It only plots around 20 or so before it hits the geocode limit. What can I incorporate into my code to avoid hitting the limit? UPDATE: How can I add a time delay to each request say 0.25seconds (or whatever the lowest I can get away with)? I've tried a few different suggestions but I can't seem to get them to work with my code so please could any examples use my code. So instead of sending all the requests almost instantly in a for-loop, I thought it might be better that when a geocode returns a result, to send the next one. If the result

How to add a business/“default” location marker and infoWindow to Google Maps (v3)

有些话、适合烂在心里 提交于 2019-11-28 05:56:47
问题 Is is possible to add a business location marker WITH IT'S "DEFAULT" INFOWINDOW bubble like the ones in maps.google.com? I'm making a contact page for a a company, where I have the GMaps element with a location and a marker, naturally. Example: Go to maps.google.com and search for "Colosseum" (for example, any "known" location/business will do). When you click the Colosseum marker, you get an infoWindow that has the business/sight/whatever info in the window (screenshot: https://dl.dropbox

Toggle on/off Google map markers by category

狂风中的少年 提交于 2019-11-28 05:44:55
问题 I have the below and want to sort the markers by the various category type being pulled under cat: dataMarkers.cat . Im a bit lost as to how to actually do this the best way. I'm thinking markerManager for each category? Would I need each category to be in its own markerManager array? How does this factor in with markerClusterer? var map; function initialize() { var center = new google.maps.LatLng(39.632906,-106.524591); var options = { 'zoom': 8, 'center': center, 'mapTypeId': google.maps

move marker on google maps api 2

可紊 提交于 2019-11-28 05:05:45
How do I move marker on Google maps api V2 ? I am using below code but it does not move marker on the map. What am I doing wrong here ? This should work when location changes, so I have added onLocationChanged method and in that, am getting location details and trying to move marker on new details, but this doesn't work. Here is my code: import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GooglePlayServicesUtil; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.model

Rotate marker as per user direction on Google Maps V2 Android

点点圈 提交于 2019-11-28 04:45:37
I want to rotate marker as per bearing or sensor value received from Accelerometer to show the user where actually he is moving. I have set marker icon and flat value to true but its not working as required. mCurrentLocationMarker.position(new LatLng( LocationUtils.sLatitude, LocationUtils.sLongitude)); mCurrentLocationMarker.icon(icon); mCurrentLocationMarker.flat(true); mCurrentLocationMarker.rotation(LocationUtils.sBearing); if (currentMarker != null) { currentMarker.setPosition(new LatLng( LocationUtils.sLatitude, LocationUtils.sLongitude)); } else { currentMarker = mGoogleMap .addMarker