I'm trying to create custom markers, but add 2 map layers.
Essentially trying to combine this:
https://www.mapbox.com/mapbox-gl-js/example/custom-marker-icons/
With this:
https://www.mapbox.com/mapbox-gl-js/example/toggle-layers/
How do I specify my customized markers, but assign them to 2 layers?
Markers don't exist within the map's Style, so they don't live within Layers either. They sit on top of the map, effectively within a single "layer" (but not actually a Layer).
So if you're trying to find a way to hide or show groups of markers in a single action, you'll have to find another way to do that.
Alternatively, if you really want your markers within Layers, you should create Symbol Layers with icons, not markers.
Related
I have a feature layer with points. I have three pages in my print composer. On one of my pages, I only want to show points that fall within a certain value range. First, I tried locking the style on the pages where I want to display all my points.
Then, I went to the Query Builder of the layer I want to select points from, and I created an expression to display only points from a range:
The problem is that this selection modifies the points shown on all my pages in print composer, even the ones where I locked the layers and style for layers. The only alternative solution I can think of is to select the points I want to show, create a new feature layer with those selected points, and then show that feature layer on my page in print composer. However I'd like to know if there's another way to do this without creating a new feature layer each time I want to filter the points I show in print composer.
There's another way. The points change because when you define a query, basically you define what features will be loaded to the project. So if you use categorized symbology you can define that some feature will be not displayed, but they will stay loaded in the project.
Here you can find how to use this type of symbology: Classifying Nominal Data
I would like to know what are the settings capabilities on workshop charts when implementing multiple layers.
Here is an example of a chart with 2 layers (3 objects):
Among the global settings options, I would like to know:
how to have only one legend per group, instead of one per layer?
how to manage colors? Is it possible to change default?
is there any way to display dotted lines for example?
Thanks in advance
how to have only one legend per group, instead of one per layer?
Currently all the legend "flattens" all the series across all the Plot Layers and there isn't any way to change the grouping. If you really wanted to, you could use a couple metric widgets in List or Tag mode and build your own legend alongside the chart, assuming you'd made overrides for all the potential series and series segments (see below).
how to manage colors? Is it possible to change default?
Yes, you can change the color for each series on the chart. If the series has no "Segement By" config, then you can choose the color directly. If you choose to segment by some other property, then you need to add a Segment Display Override for each segment value that you want to change.
is there any way to display dotted lines for example?
You can change the style from solid to dashed in the same place that you can change the color
I have PSD file with about thousand layers. And I have one selected shape area. And 0 layers are selected. Now my question is how to select only those layers that are in selected shapes. Layer is in selected shapes if part or all layer is in selected shape. Selected shape is non rectangle.
I think it is possible with the ctrl - click. You can hold ctrl and then select layers you want to have selected.
If you are wanting a way to do this by shape area ,either a path or a selection, automatically that is not possible. (There might be a script or plug-in but not one I can think of off-hand.
A possible workaround:
If you select the move tool and check "Auto Select" and "Layer" in the options bar you can click an area of an image and Photoshop will automatically select a layer that contains the content you clicked.
If you hold down the shift key you can select multiple layers (shift-clicking a layer you already selected deselects that layer.) If there is a layer behind another layer it will always select/deselect the front-most layer. To get around this right-click the area that contains both layers, a list of layers in order will appear and you can select the layer you want by name. (see image)
Using this method you should be able to capture all of the layers within a certain area by hand in a fairly efficient manner.
After you have all the layers you want selected you can either group them (which is the best method but doesn't work if you need to maintain their current layer order in relationship to all of the other layers in the document) or you can link them which will allow you to select or move them together in the future.
Not sure if this solves your problem, hope it helps.
Good luck.
Holding Shift key & select your multiple objects
For Single selection:
Click Control(ctrl) button and select your layers.
For multiple selection:
Use Shift and then click your layers.
The red circles with numbers are clusters, but part of a bigger cluster when zoomed out.
Is it possible to change the marker/icon of the marker cluster in this present zoom depending on the markers that they have inside them? This without clicking them or anything, just change depending on the values of the markers that are hidden?
I have tried accessing the layer that is clustering all of them but I haven't been able to find the markers themselves, much less know how it would be possible to change the appearance of one without changing the other.
It looks like you already know how to customize your clusters appearance.
In the case your question refers only to the number of contained markers, you would just need to use a slightly modified version of the default iconCreateFunction to adjust the threshold values. When markers are removed/added from the MarkerClusterGroups and a cluster is de-/populated in consequence, its icon is re-drawn automatically. Customising the Clustered Markers
Now if you want this appearance to depend on some data from the contained markers, you would simply need to use cluster.getAllChildMarkers(); within your iconCreateFunction to get the array of markers contained within the cluster being styled. Then iterate through that array of markers, look for your data and create an icon accordingly.
Then, I understand that some data attached to your markers is changing, without any user action, and you want your clusters to update their appearance in consequence? In that case, please refer to this related question to upgrade your markercluster plugin with the new refreshClusters() method.
If your iconCreateFunction is properly designed, you do not have to worry about which clusters are changed. In fact, ALL clusters can be re-drawned, but if their markers data has not changed, they will get the same icon.
I'm displaying a map that's been tiled (-p raster) using gdal2tiles.py. The X-coordinate is about [0..-1160]. The Y-coordinate, for some reason, is [-700,0]. Zoom-levels 0-5.
I simply cannot get a plausible display to work. Sometimes, if I zoom-out to level-zero, I see the map way down at the bottom of the display ... not centered. Nothing at all appears at other levels.
I am also seeing the display "bounce back and forth" between about a 3-o'clock and a 6-o'clock position. (Only, once again, at zoom-level zero.)
I am at my wit's end. Please give guidance. Complete examples. Anything ...
Well, I found my answer:
If you're going to be using several layers in your Leaflet map, add them in the constructor-call, using the layers parameter.
If you try to do things with the layers before joining them all together, or with the map with no layers added, "strange and default things will happen." (For example, although I requested the Simple CRS when constructing things (separately...), the net-effect was to actually try to use a different one. Therefore, "do what the author expected." Specify all the layers at once, to the Map constructor. Then, customize them as you need to. Make very sure that they all know about each other from the very start of things.