marker

JS Maps v3: custom marker with user profile picture

放肆的年华 提交于 2019-12-28 02:03:34
问题 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

Different markers show same infowindow content android google map v2

社会主义新天地 提交于 2019-12-25 02:44:06
问题 I have different Markers based on their different information to show in custom infowindow . For that I have use different class for each infowindow content. I can see different Markers in my map. But I tap on them, only the lastly built marker's information is showing. Basically the infowindow content is same. Also I noted that when I tap, it does not call the relevent infowindow instead its calling lastly created infowindow's getInfoContents(Marker arg0) . But I receive the correct marker

Android use HEX color for google maps marker

允我心安 提交于 2019-12-24 21:42:44
问题 I want to use a custom hex color for google maps markers, but I saw you can only use hue colors from 0-360 and the 10 predefined ones. Is there any way you can change the marker color to be a hex one, or at least convert the hex value to hue so I can use that instead? I already know how to set a hue color to the marker, but not a hex one. 回答1: The following code shows an example. It's based on this great answer that uses JavaScript: https://stackoverflow.com/a/3732187/1207156 public class

google api v3 infowindow with multiple markers doesn't work

被刻印的时光 ゝ 提交于 2019-12-24 12:34:15
问题 I'm trying to write on the infowindow content, the record number of my loop. The result is that i read the last record number (10) for each infowindow, and not 1,2,3...10 Someone can help me? Thanks in advance The code is this: function generaMappaMulti() { var CoordinataIniziale = new google.maps.LatLng(44.714957, 10.733647); //set initial coordinate var opzioni = { center: CoordinataIniziale, zoom: 10, mapTypeId: google.maps.MapTypeId.ROADMAP }; //set options to the map map = new google

Add class to marker on click

对着背影说爱祢 提交于 2019-12-24 11:35:10
问题 On Google Maps I would like to add a class to the marker when clicking on it. I've searched the API but I can't find a solution. Do you have any leads? 回答1: Use addListener: var marker = google.maps.Marker({ position: geolocation }); google.maps.event.addListener(marker, 'click', function() { // your code }); 回答2: in fact, at this level I do not have to worry, but the concern is how to add a class marker. thank you google.maps.event.addListener(marker, "click", function (e) { var curMarker =

JFreeChart - IntervalMarker vertical?

走远了吗. 提交于 2019-12-24 11:07:09
问题 In the examples provided by JFreechart , we see that it is possible to display horizontal IntervalMarker s. I would like to build vertical IntervalMarker s and I do not find the way to do that using this example. 回答1: In Cartesian coordinates , the domain is orthogonal to the range, so final IntervalMarker target = new IntervalMarker(10.0, 20.0); target.setLabel("Target Domain"); ... plot.addDomainMarker(target, Layer.BACKGROUND); 来源: https://stackoverflow.com/questions/5964674/jfreechart

Google maps API v3 - Marker disappears after setPosition [duplicate]

旧城冷巷雨未停 提交于 2019-12-24 08:17:36
问题 This question already has an answer here : google maps move marker with lat/lng from ajax success returned data (1 answer) Closed 5 years ago . I'm having a problem with the maps markers. The map and marker load fine on the inital pageload. But when I try to update the marker location it simply disappears. The Alert window gives the correct coördinates. What am I doing wrong here? Code: <script> var myCenter=new google.maps.LatLng(<?php echo $loc; ?>); function initialize() { var mapProp = {

Leaflet custom icon resize on zoom. Performance icon vs divicon

别说谁变了你拦得住时间么 提交于 2019-12-23 13:34:08
问题 I was trying to resize my custom icons when zooming in leaflet. I came up with two solutions for this. One using the L.Icon tag, the other one using L.divIcon . In both examples I only set 1 marker and group for readability Method 1 using L.Icon : make groups with markers. Then on zoomend i use mygroup.eachLayer(function (layer) to change all icons for 1 layer using layer.setIcon() . I repeat this for all groups <script> // Setting map options .... // Setting Icon var normalicon = L.icon({

How to distinct two markers placed at the same coordinates in Nokia Here map

泄露秘密 提交于 2019-12-23 04:52:50
问题 I have two markers placed at the same coordinates in a Nokia Here map. The problem is I can access only at one marker. The other is below the first one. Is there any options or something else to manage this case, in order to have access to all markers placed at the same coordinates ? 回答1: The only way to ensure that all markers are separately visible is to put the overlapping markers at slightly different locations. The best effect I have found is to use the clustering functionality down to

React-Google-Map multiple Info window open

亡梦爱人 提交于 2019-12-22 08:01:51
问题 I am currently building a google map api using react-google-maps and I would like to create multiple markers to display info of cities around the world on the info window. But since they are all from the html object. Whenever I clicked on one marker, all info windows will be opened. If there a way to fix this? Sample code: <GoogleMap defaultZoom={3} defaultCenter={{ lat: 40.452906, lng: 190.818206 }} > <Marker id = "mark1" options={{icon: Mark1}} position={{ lat: 34.4076645, lng: 108.742099 }