markers

Transfer google map coordinates to mysql database

非 Y 不嫁゛ 提交于 2020-01-17 17:02:11
问题 I have a google map where the user can create a polyline. I have stored the polyline (lat,lng)coordinates into an array. Now i want to use php or javascript to transfer these coordinates to a mysql database or is there other better options? How should i proceed? Here is my code: (function() { window.onload = function() { var path; var marker; var infowindow; var places = []; //create reference to div tag in HTML file var mapDiv = document.getElementById('map'); // option properties of map var

Google Maps API v3 Turn Markers On Below a certain Zoom Level

白昼怎懂夜的黑 提交于 2020-01-14 14:30:47
问题 I am super green and need some help for a project. With my limited knowledge of html and javascript, I was able to make a google map with a number of locations. Here is my code (forgive me if it is bad, but it worked): <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Google Maps Multiple Markers</title> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript" src="https://maps.googleapis.com/maps/api/js

can't unregister click event in openlayers

僤鯓⒐⒋嵵緔 提交于 2020-01-13 19:24:07
问题 I am having issues with OpenLayers and unregistering the click events that are added to a layer. Basically, what I need to do is this: When a user clicks on a marker, they get a bubble that has an "edit" link in it. The user clicks that and it creates a new layer on the map and then registers a click event to the map waiting for the user to click on the map. When they click somewhere on the map, it then moves the marker to where they clicked. This all works perfectly. However, the issue is

How to set the radius of a circle marker to be proportional to an attribute value?

天大地大妈咪最大 提交于 2020-01-11 14:31:07
问题 So I am making a Leaflet map. I am using a json which lists countries as Latlng points, and their corresponding attribute (called CTH values). I am trying to use this value to set the radius of circle markers on these Latlng points, but I am struggling to figure out how. This is what I've written function addCTHValueMarkers () { CTHValueLayer = L.geoJSON(CTHValue, { pointToLayer: function (feature, latlng) { return new L.circleMarker(latlng, { fillOpacity: 0.6, radius: setRadius(feature

JFreeChart BarChart - Category Markers

此生再无相见时 提交于 2020-01-05 03:31:47
问题 I'm creating a BarChart that contains multiple frequency bands as the category axis. What I want to do is to show a visible grouping of these frequency bands: For example: Freq x1 ~ Freq x2 = Band y (so the domain axis has values for category x1, x1.1, x1.2 till x2) Freq x3 ~ Freq x4 = Band z (x3, x3.1 .....x4) What I want to do is show markers for Band Y and Band Z in the graph. Note that based on the dataset that I may get, not all categories may be present. Say, for the 1st example, I've

Conditional marker matplotlib

我们两清 提交于 2020-01-02 10:33:41
问题 I plot the result of a Gaussian Mixture when I have 3 type of points that are determinate by a prediction. I have a different color for each cluster predicted and now I would like to have a different marker instead of color. colors=['pink' if i==0 else 'skyblue' if i==1 else 'lightgreen' for i in resultGM] markers=['c' if i==0 else 'o' if i==1 else 'D' for i in resultGM] ax=plt.gca() ax.scatter(datas[:, 0], datas[:, 1], alpha=0.8, c=colors, marker=markers) plt.title("Calling " + name_snp) plt

How to draw lots of markers on a map

若如初见. 提交于 2020-01-02 08:58:13
问题 I'm trying to draw on a map using markers. The problem I'm having is when I try to add lots of them, then I can't get it to run. To illustrate my problem, let's say I want to draw a square made of 900 smaller squares (30x30). By the way, I do need those squares, not just one big square I'm trying to add the markers to an itemizedoverlay, then drawing it. the code is below. Any suggestion how I could do that? Thank you very much!! public class MainActivity extends MapActivity { MapView mapView

linking markers together using a line: google maps api

左心房为你撑大大i 提交于 2019-12-25 18:55:43
问题 I am looking to code a feature that when a user clicks a marker appears then when the user clicks for the next marker it will connect it to the previous marker using a line. I have tried using the google api documentation for this but cannot seem to get the feature to work. can anyone help? Here is the code: google.maps.event.addListener(map, "click", function(event) { var marker = new google.maps.Marker({ position: event.latLng, map: map }); poly = new google.maps.Polyline({ strokeColor: '

Leaflet JS + Leaflet.Deflate - Changing default marker icon to custom icon

时间秒杀一切 提交于 2019-12-25 08:36:21
问题 In my previous post 'Leaflet JS - changing esri shape into marker on certain zoom level ' I was able to resolve an issue which i had with the leaflet JS library and changing the polygon shapes to markers icons when hitting a certain zoom level. I was advised by 'Ivan Sanchez' to use the 'Leaflet.Deflate' plugin and this works like a charm, so now the various shapes are being transformed into markers after a certain zoomlevel, however now I'm struggling to change the default leaflet marker

Marking peaks in an ECG signal

雨燕双飞 提交于 2019-12-25 08:03:06
问题 I am working on ECG signal processing. I am using the MIT-BIH Arrhythmia database found here. After loading the signal, I marked the R peaks correctly. Then I was trying to extract QRS complex, but I couldn't. I want to make marks on peaks like in this image: . . . . . . . Here is my code: clear all; clc; close all; load ('G:\1.Thesis\data set\100\100m') %% Remove base & gain %%figure (1) val = (val - 1024)/200; ECGsignal = val(1,1:3600); SAMPLES2READ = 3600; time = (0:length(ECGsignal)-1)