google-maps-markers

Adding multiple custom markers to a google map using an array

十年热恋 提交于 2019-12-20 06:17:12
问题 I'm currently working on implementing a google map for my website and stumbled across a great tutorial here which almost got me to the promised land. However, I have one more piece of functionality I'm looking to add. Inside my array I want display one of three different custom markers on my map. Does anyone have any ideas? Here's a fiddle... var locations = [ ['Bondi Beach', -33.890542, 151.274856, 4], ['Coogee Beach', -33.923036, 151.259052, 5], ['Cronulla Beach', -34.028249, 151.157507, 3]

Google Maps JS API v3 and looping animated gif's

不打扰是莪最后的温柔 提交于 2019-12-20 06:16:22
问题 I can't seem to loop animated gifs with the Google Maps API. It plays the animation the first time around but will not play it again after that. Can anyone point me in the right direction? I have a lot of code in this file so I have dragged out the important bits, I'll happily put up some more if needed. var marker = new google.maps.MarkerImage( 'library/img/gmap_marker.gif', new google.maps.Size(100, 100), new google.maps.Point(0, 0), new google.maps.Point(100, 100) ); var shadow = new

Googlemap API v3 - Can I get Content from Marker?

江枫思渺然 提交于 2019-12-20 06:09:01
问题 I created a lot of a Marker but I think after obtaining their content used to do average and set infowindow click inside is the average of all Marker on markerCluster. Each Marker has to give him a value. snapshot I want to grab all marker and average , and displayed in infowindow. Snapshot: here is my Code: var locations = [ ['100', 22.75853,121.14886, 1], ['90', 22.7586,121.14891, 2], ['80', 22.75857,121.1488, 3], ['70', 22.75844,121.14887, 4], ['60', 25.08389,121.57796, 5], ['50', 22.75839

Googlemap API v3 - Can I get Content from Marker?

只谈情不闲聊 提交于 2019-12-20 06:07:08
问题 I created a lot of a Marker but I think after obtaining their content used to do average and set infowindow click inside is the average of all Marker on markerCluster. Each Marker has to give him a value. snapshot I want to grab all marker and average , and displayed in infowindow. Snapshot: here is my Code: var locations = [ ['100', 22.75853,121.14886, 1], ['90', 22.7586,121.14891, 2], ['80', 22.75857,121.1488, 3], ['70', 22.75844,121.14887, 4], ['60', 25.08389,121.57796, 5], ['50', 22.75839

Use Google Maps API MapView without permission

↘锁芯ラ 提交于 2019-12-20 05:23:27
问题 Does anyone know if it's possible to use the Google Maps API for Android's MapView without giving it location permission? I just want to render a map and place a marker on it. I am not asking for the user's location in any way. I cannot use the MapFragment because I am housing this view inside another Fragment, and nested fragments aren't supported until Android 4.2. 回答1: Per the specify Android permissions section: The following location permissions are recommended, but you can omit them if

Custom info window for google maps android

孤街浪徒 提交于 2019-12-20 05:14:06
问题 I want to have a custom info window appear on marker click. I want it to be something like this: ImageView TextView TextView TextView Button Button I saw other's post question on this, but it's still confusing. 回答1: About ImageView and TextView, try this: set an infowindow layout: infowindowlayout.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android

Drag marker with circle and vice versa in google maps

回眸只為那壹抹淺笑 提交于 2019-12-20 03:30:54
问题 Is it possible to "stick" marker to the center of circle? So when I drag marker circle also moves and vice versa. options = { strokeColor: "#0000FF", strokeOpacity: 0.35, strokeWeight: 2, fillColor: "#0000FF", fillOpacity: 0.20 }; options.map = context.map; options.radius = radius; options.center = center; context.circle = new google.maps.Circle(options); var marker = new google.maps.Marker({ position: new google.maps.LatLng(54.19335, -3.92695), map: _map, title: "", draggable: True }); 回答1:

Maps marker point image with picasso not loaded at first time

荒凉一梦 提交于 2019-12-20 03:27:05
问题 I'm implementing android Mapview with Custom marker. I'm using picasso to load image into marker view. And when i launch the app at the first time, it shows me all the markers, but only one marker that has loaded from database with picasso, the other markers are not loaded from database, they only show me the default maps marker pin. But when i go to the previous activity and go back into MapsActivity, it shows me all the markers that loaded from database with picasso. Here's my PicassoMarker

How can I display a different icon for markers that fit wthin different categories?

喜夏-厌秋 提交于 2019-12-20 01:58:11
问题 I'm attempting to make a Google Map which allows the user to check off a category and have those specific locations display. I've got that part working: http://thedenvillehub.com/test-hs/adv/scripts/test.html What I want to do is have a different icon come up for each category, so that one is red, one is blue, etc. I found a couple of examples online but nothing seems to be working for me. Here's my code for reference: var markers = new Array(); var locations = [ ['Boonton Town', '402-9410',

Display multiple markers on a map with their own info windows

徘徊边缘 提交于 2019-12-20 01:39:42
问题 I need to display multiple markers on a map, each with their own infowindow. I have created the individual markers without a problem, but don't know how to create the infowindows for each. I am generating a map using the V3 API within an ASP-based website, with markers being created from a set of DB records. The markers are created by looping through a rs and defining a marker() with the relevant variables: var myLatlng = new google.maps.LatLng(lat,long); var marker = new google.maps.Marker({