markers

How do I change the marker of Mapbox with directionsjs? It shows A and B markers [duplicate]

放肆的年华 提交于 2019-12-25 07:13:13
问题 This question already has answers here : Mapbox Driving Direction with Custom Marker (2 answers) Closed 3 years ago . How do I change the Mapbox marker (when using directionjs)? It shows A and B markers. I tried editing the marker but lose directions. var x= L.marker([51.508245, -0.087700], { icon: L.mapbox.marker.icon({ 'marker-size': 'large', 'marker-icon': 'monument', 'marker-color': '#fa0' }) }).addTo(map); // Set the origin and destination for the direction and call the routing service

Removing an individual marker from Google Map - API v3

一笑奈何 提交于 2019-12-25 03:49:13
问题 I want to remove an individual marker from Google map. I am using version 3 API. I know how I can remove all the markers by maintaining a markerArray and setting map null for all. For removing one by one, I am thinking to make a key value pair combination. So that I give a key and remove the particular marker. I need help over this. Following is the code, that I use to dram marker: function geoCodeAddresses(data) { var markerInfo = {addressKey: '', marker:''}; for (var i = 0; i < data.length;

Multiple markers error in eclipse

旧城冷巷雨未停 提交于 2019-12-24 20:20:10
问题 I have one java file for web Crowler. That gives me error like multiple markers at line and some line number . I am just learned the pattern and matcher. so i am unable to correct the error. my code is import java.awt.*; import java.awt.event.*; import java.io.BufferedReader; import java.awt.*; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; class

GeoJson/Mapbox markers: let users change their attributes (e.g. color) via a button [EDITED]

余生长醉 提交于 2019-12-24 19:31:34
问题 (EDIT:I received some thumbs down because accidentally posted the question with an unfinished name, please don't be deterred) As in the example of https://www.mapbox.com/mapbox.js/example/v1.0.0/change-marker-color-click/ I'm trying to let the user change attributes (in this example the color) of markers. In this example of Mapbox the attribute of a marker is changed when the user clicks on the marker. However, I would like to change the attribute of markers when the user clicks on one of the

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

MediaElement Markers Missing in WPF

放肆的年华 提交于 2019-12-24 07:52:37
问题 I see that there is a Markers Property on the MediaElement, but this seems to be available to the Silverlight MediaElement, not the WPF MediaElement? Can you help me with what I'm missing? I'm trying to add Markers to a WPF MediaElement, to play a video and show popups based on the timeline. What should I be using in place of the Missing Markers collection? Thank you for your help. 回答1: There are two aspects to your question depending on what you actually intended - please note that the

How to add a PushPin item to a map? Windows Phone

只愿长相守 提交于 2019-12-23 04:52:54
问题 I'm trying to draw a pushpin to a map in the map page of my application but when I add the code to overlay a pushpin to the map, I get the following errors: The type or namespace name PushPin could not be found (are you missing a using directive or an assembly reference?) and Microsoft.Phone.Maps.Controls.Map does not contain a definition for Children and no extension method Children accepting a first argument of type Microsoft.Phone.Maps.Controls.Map could be found I understand from this

Change point location of multiple custom marker icons Google Map API V3

ⅰ亾dé卋堺 提交于 2019-12-23 04:05:11
问题 I need to be able to change the point location of marker icons, where each marker location has a separate icon. The icons need to be centered on the anchor point, not bottom-center as they are default... I can't figure out how to do this without completely re-working my code... var sites = [ ['Photo 1', 36.33835943134047, -93.63535, 4, 'mylinkurl', 'images/marker1.png'], ['Photo 2', 36.315939, -94.440630, 2, 'mylinkurl', 'images/marker2.png'], ['Photo 3', 36.085890, -93.90175, 1, 'mylinkurl',

Getting the count of markers in a layer in leaflet

半世苍凉 提交于 2019-12-22 11:33:47
问题 I have a Leaflet map with a layer called flickrpics that is loaded dynamically in geojson based on the bbox of the current map view. I would like to get a simple count of the number of markers in that layer, so that I can display it next to the layer label in the layer control. I've tried things like flickrpics.length but it's saying undefined. Apologies, pretty new to Leaflet and javascript! 回答1: Reference: https://leafletjs.com/reference-1.3.4.html#geojson Methods inherited from LayerGroup:

How to customize marker colors and shapes in scatter plot?

浪尽此生 提交于 2019-12-22 10:28:08
问题 I have a data set with 9 columns. 7 features are used for feature selection and one of them for the classification. I used tsne library for feature selection in order to see how much my data could be classified.The result from tsne is shown in picture. However, I want to visualize my data in another way. I would like to set a color for each observation based on the column f1 (id). for example : f1(id) f2 f3 ... f9(class label) 1 66 77 ... A 1 44 88 ... A 2 33 55 ... B 2 77 88 .. B colors come