I am trying to add shading or some type of coloring to hotspots within an asp imagemap control.
The overall scope is we have a map overlay and within each map we have n number of hotspots. However while the hotspots are there it is not to readily visible to the end user unless they just hunt over the image until the cursor changes.
I need some way of letting the end user know there is a click-able hotspot on this section of the map.
Related
I have added some drawing tools to my Mapbox map using the following code provided on the Mapbox website... https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
I removed anything to do with the area measurement calculation as I only wanted to be able to draw on the map.
However, the map is set to default draw without having to click the drawing icon. This means when the page opens rather than being able to pan around the map the cursor is a crosshair and begins drawing.
I noted the following section in the script but not sure what to put in place of "draw_polygon" to stop it from being the default.
// Set mapbox-gl-draw to draw by default.
// The user does not have to click the polygon control button first.
defaultMode: 'draw_polygon'
});
Anyone have any ideas how to stop draw polygon from being the default?
Also any other ideas on other/better drawing tools?
The default mode is simple_select, so you can either add this in place of draw_polygon, or just remove the defaultMode option altogether and it will start in simple_select mode.
I'm using leaflet for R.
I have a map with hundreds of layers, and I want to cycle between them by pressing a button (maybe an easyButton) or a keypress.
This means that only one layer should be visible at a time, and that pressing the button would hide the current layer and show the next one (and at the last layer, start from the first).
Yes, I can do this with baseGroups and addLayersControl, but this requires moving the mouse and then clicking to select the layers and this can be slow, since I'm going to spend less than one second checking each layer anyway.
I'm no JS wizard, but I guess some sort of JS magic should be applied here. I'd like to avoid using shiny for such a simple applet.
I'm testing our web application which has a map inside a form. I use leaflet map to show different regions on it, region ids may change with choosing a combo-box option. I've tried click element using Xpath to choose a region but unfortunately it didn't work. Is there any way to select regions from leaflet map with Rrobot Framework?
Below is the Robot Framework code I am using:
click element xpath=.//*[#id='map-id']/div[1]/div[4]/img[89]
Here is my form:
I had the same problem, and there are two ways to fix it: create a custom Python keyword to locate the map element, find the center of the element, calculate a distance away from the center to click, and then click that location (not as hard as it sounds, actually); or click the map element itself (probably by a dom-style locator, those are fairly solid and can click behind transparent overlays) and be happy with the center of the map being the only place you can click it.
Except for the second option, this all assumes that there isn't a transparent overlay blocking Robot Framework from clicking your map, which is something else that could throw that error. If there is, then you may need to go through Javascript via the Execute Javascript keyword. Javascript is able to click things behind transparent overlays, assuming the click () command works with your current setup.
If ALL of that fails, you might consider a different custom keyword that moves the cursor and then clicks as the cursor. I don't have access to that code atm, but it's a one-line keyword in Python.
Also, the error might be just because your XPath wasn't specific enough.
I have an XY Graph in Labview. I have no problems with its basic functionality.
I'd like to have a marker on the plot (independent on the cursor) which would stay in a certain position that I could read out and display in the GUI. Also I want the user to be able to move the marker to a new position.
How can I implement this functionality?
I know the title isn't very well-chosen, so I'll be grateful for any edits.
Edited:
You can just add cursor.
Add a cursor, select the point style you like and click on Allow dragging as shown on the picture below.
You can modify or read the current position of the point using Cursor Position property of the XY Graph.
They’re called “annotations”; you can add an array of them via a property node.
How can I zoom in to the number of points I have selected on the Shield UI ASP.NET Chart?
I enable the necessary property:
<Settings EnablePointSelection="true">
</Settings>
but can’t figure out how to invoke zoom in after the selection is made.
Shield UI Asp.NET chart adopts a new and more convenient zooming/panning concept which leaves out the possibility of selecting multiple adjacent points and zooming in to them.
Instead using the scroll wheel the user can zoom in and out much easier. In addition by holding down the mouse left button the user can move the chart so that the points of interest are in the middle of the plot area.
One good example can be found here:
http://demos.shieldui.com/aspnet/spline-chart/zoom
In respect to the above information the points selection has nothing to do with the chart’s zooming.