marker

SVG Marker does not work

谁说胖子不能爱 提交于 2019-12-05 15:54:49
I created a marker in javascript, It looks like below: var marker = document.createElementNS(SVG.ns, "marker"); marker.setAttribute("markerWidth", "3"); marker.setAttribute("markerHeight", "3"); marker.setAttribute("id", "mkrCircle"); marker.setAttribute("viewBox", "0 0 12 12"); marker.setAttribute("orient", "auto"); marker.setAttribute("stroke", "#000000"); marker.setAttribute("stroke-width", "2"); marker.setAttribute("fill", "#ffffff"); marker.setAttribute("refX", "12"); marker.setAttribute("refY", "6"); var mkrContent = document.createElementNS(SVG.ns, "circle"); mkrContent.setAttribute("r"

React-Google-Map multiple Info window open

拈花ヽ惹草 提交于 2019-12-05 14:39:17
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 }} onClick={props.onToggleOpen} > {props.isOpen && <InfoWindow id = "info1" onCloseClick={props

Error using Logback Marker in FileAppender

萝らか妹 提交于 2019-12-05 11:10:11
I have started exploring Logback option for our application. One of the requirement is to create a separate log file for log entries that have a specific "Marker". Below is the logback.xml file that i am using and the error I am getting. The examples on the logback website shows the usage of SMTPAppender but I would like to use FileAppender instead. Is this possible? If not, what other option do i have? <property name="USER_HOME" value="c:/temp" /> <appender name="AUDIT_FILE" class="ch.qos.logback.core.FileAppender"> <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> <marker

customize the pin of map Android

萝らか妹 提交于 2019-12-05 08:24:38
问题 Hello I would like to add a dynamic display with a number in my point. As in the picture, I already have the icons on the map. Adding the numbers in point? 回答1: You may use android-maps-utils to achieve such effect. Simply create 9-patch out of your pin with empty rectangle above and make rectangle be the content. Then use IconGenerator to create a Bitmap with your text and 9-patch like here: IconGenerator factory = new IconGenerator(context); factory.setBackground(your9PatchDrawable);

Putting an arrow (marker) at specific point on a path when using the d3 javascript library

瘦欲@ 提交于 2019-12-05 03:06:55
I am working currently on a graph visualization and I use SVG and the D3 library. I was asked by our designer if I can put the arrowheads of the edges of the graph on a position corresponding to 80% of length of the lines. I was able to achieve the first part - getting the position - by using the getPointAtLength method. var svg = d3.select("body").append("svg") .attr("width", 960) .attr("height", 500) var path = svg.append("path") .attr("d", "M20,20C400,20,20,400,400,400") .attr("fill", "none") .attr("stroke", "black"); var pathEl = path.node(); var pathLength = pathEl.getTotalLength(); var

adding sound to an array of markers - google map javascript

亡梦爱人 提交于 2019-12-04 16:22:46
I am new here so I know I don't have any credibility. I am an artist and new to programming so I understand if no one will take this on. I am posting this on the off chance that this is an easy question. -S This is the code (mostly from the google developer site) to create multiple markers. It works fine and creates a custom icon for each marker. Each marker should play a different audio file when clicked (right now only the last marker created does). I would also like to change the icon when the audio file is playing. I am using javascript and sound manager 2 to play the audio - but what i am

python seaborn to reset back to the matplotlib

天涯浪子 提交于 2019-12-04 15:06:00
问题 I'm using seaborn version o.4 and matplotlib version 1.42 I have a chart displays both line and marker through simple plot command eg. plt.plot([1,5,3,8,4],'-bo'); Due to a potential bug (https://github.com/mwaskom/seaborn/issues/344), after import seaborn, same code shows line only without marker. import seaborn as sb plt.plot([1,5,3,8,4],'-bo'); So my question is: after import seaborn, Is there a way to reset all the parameters back to original? 回答1: Yes, call seaborn.reset_orig. 回答2: To

google maps marker loop in javascript

試著忘記壹切 提交于 2019-12-04 14:25:35
问题 I want to display an alert with the marker info when I click on it. I receive the parameters as a json and my problem is when I click any marker, it is always displaying the info of the last marker. I don´t know where the problem can be. var map = new google.maps.Map(document.getElementById('map'), mapOptions); if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { var userPos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude)

WPF DynamicDataDisplay - Slow plotting with Markers

浪尽此生 提交于 2019-12-04 13:50:23
I am having a really hard time waiting for the ChartPlotter in D3 to show itself, when using markers. Of course I am trying to plot a Gazillion records (well, 700,000 records). When using just a line, all is well (20 seconds or so). When using markers, we're talking 5 minutes. That's not acceptable. Any ideas? Here's what I have done, with explanations under it. public static string MakeSimplePlot(double[][] xData, double[][] yData, string[] legend, string xAxisTitle, string yAxisTitle, bool[] showLines, bool[] showMarkers) { ChartPlotter plotter = new ChartPlotter(); plotter

Aligning the text in Google Maps Marker snippet

﹥>﹥吖頭↗ 提交于 2019-12-04 13:39:47
I want the string in my snippet to be aligned to the center. Also, line breakers (\n) in the snippet are converted to spaces, is there a way to insert line breakers? My relevant code: GoogleMap map = ... map.addMarker(new MarkerOptions().position(pos) .title("title") .snippet("body \n and mind"); Thanks Mugen Using some examples, as well as answers from: custom info window adapter with custom data in map v2 , I've come across the following solution: marker.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width=