Mapbox, create area, label that area, then search for the label - search

Total newbi here. I have played with studio for a few h but can not get over the next hurdle.
I would like to draw wine growing areas on the map.
Managed to draw areas. Tick.
I would like to give these areas a unique name.
Managed to create labels.
But I don't understand how the text is associated with the area.
I then want to search for this label, so that the map zooms in on that area.
Just like when I search for "Coburg, Victoria, Australia".
I have managed to publish my maps including the areas in my WordPress website.
So my access token and my style does the right thing.
Need some hints how to get the labelling and searching happening.
Thank you for any help.
Regards
Romano

and welcome to using Mapbox.
I would like to give these areas a unique name. Managed to create labels. But I don't understand how the text is associated with the area.
Have you tried creating a Symbol layer, and setting the Text field to the appropriate field in your data source?
I then want to search for this label, so that the map zooms in on that area. Just like when I search for "Coburg, Victoria, Australia".
This goes beyond using Studio, and into building web maps with mapbox-gl-js. One starting point would be to use the Finder Impact Tool.
This might involve processing the data twice -- once for your base map, and another time in a spreadsheet to make available to the Finder template. It's possible to just do once, but would involve some modifying the Finder template.
https://labs.mapbox.com/education/impact-tools/finder-with-filters/

Related

nested collapsible container in drawio?

I'm wondering if it's possible to nest collapsible containers? In the picture below I have a container containing various lists of text organised in "sections"; it'd be great to be able to collapse the sections individually as well.
Related query, since I'm creating those boxes programmatically – is it possible to create the text content programmatically and not need to position them with absolute y positions? With the user interface I can just add a new text box and it automatically stacks below the current one, and the container expands. If I create those with a script it seems I need to provide the y positions and sizes myself.
you could try adding a new container for every section (as shown in the attachment) and check if it suits your needs. I created a simple test diagram, it could be improved visually.
nested containers

ArangoDB Graph shows different result every time

I'm new to ArangoDB and currently trying to display the "Game of Thrones" and "debian_dependency_graph" from the Example Datasets.
In the GoT case I'm able to get the full view by using "Fetch full Graph". Yet there doesn't seem to be a way to add "Traits" in a useful way.
Even stranger is the behavior of the debian_dependency_graph which gives a random, but useful result at first, but changes to nodes only with no added edges after displaying everything.
I'm aware we're starting with a random graph in the beginning, but why isn't there a useful way to switch between the possibilities? Also how comes in the Debian-packages the edges are gone after displaying everything?
From looking through the web I see that in previous versions there seemed to be a way for adding filters and doing changes, in my version (3.4.1, rocksdb)
I can't make much sense of "Configure graph settings". Is there something I'm missing out?
For instance services or showing AQL-Queries as graphs. I'm still trying to figure out what's out.
Screenshot of the Debian dependency graph (Full graph):
The "Configure graph settings" option which you mentioned above is a right tool for you to use.
You can force graph to be rendered starting from a specific node if you change Startnode (the value should be equal to _id property value of a particular object within your graph)
The problem with the missing edges looks like a limitation of the graph viewer (you are trying to display too many object at the same time and it will be a complete mess if it would render all the edges)
You can play with Search Depth & Limit settings to limit the amount of nodes being rendered at the same time which will allow you to see edges

Drupal, Solr & Facet Api - Persistent facet links in blocks

I need to produce facet block from two vocabularies in my site. I am using Views and a patched version of Views infinite Scroll to generate the search page, using my search index, and I have tweaked everything I could in the facet display settings to see if I could produce the requested results, to no avail.
I do not need keyword searches. I need to show all taxonomy terms in each facets at all times and to be able to select a single criteria at a time from each vocabulary. So, never more thane one selection at a time from each facet block.
Why are you using Solr to store data and generate your search page, if you do not need keyword search and are trying to go against the native working of solr Facets, I hear you say? For performance reasons, it is the reason why I am using Solr to store & serve the results, I have even gone as far as pushing renedered node to the index with the help of the somwhat obscure search_api_solr_view_modes module.
I could take two separate routes
Create a custom block, load all the taxonomy terms, alter the output of the term link to point to the view and provide the TID for the View. The active filter data could be obtained from the view arguments. I know how to do that but feel it is the wrong way to go about it, if I am working with Solr, I should be using a facet, not a custom block.
Build a custom Facet block that has this exact behaviour. After reading a lot of documentation, I git kind of dicouraged with the possibility of doing this simply without having to develop a Facet plugin, which is kind of out of my league.
Any advice is appreciated.
Here is a screenshot of the interface I have to produce.
http://imageshack.com/a/img834/9836/kr0i.png
Each taxonomy term has to be persistent, i.e., produce a link event if there are no nodes indexed under this term.
Selecting a term in one of the vocabularies will deselect previously selected terms
Clicking on the x next to a term will remove it form the active search criterias.
Have a look at this. https://drupal.org/project/ajax_facets This might get you to where you need to be. Sans you infinite scroll. There is a youtube video that goes with it. http://www.youtube.com/watch?v=pBj3OkXLyWs
I'd appreciate it if it works as I haven't tried it my self.

How to define alternate part shapes in Orchard

Here is my scenario...
Using Orchard CMS 1.7.1 I have created a custom Content Type named 'VistaImage' using the Orchard UI. This Content Type defines one field based on a Media Library Picker Field, this field is also named 'VistaImage'.
A Projection of groups of Vista Images are placed in the 'Featured' Zone as a Widget reference and works well.
Using the Shape Tracer on the resulting page(s), the shape hierarchy looks as follows:
Zone [Featured]
Widget
List
Content Alt: Content-VistaImage
Fields_MediaLibraryPicker Alt: Fields.MediaLibraryPicker-VistaImage
Media
Parts_Image_Summary
What I want to do is to provide alternative shapes from the Content shape downwards. This is easy enough for Content itself and for Fields_MediaLibraryPicker (as the Shape Tracer automatically provides applicable alternatives (as indicated above)).
My problem comes in providing alternatives for the Media and Parts_Image_Summary parts.
Looking at the documentation for Alternates on the Orchard web site, I thought that if I created a new shape in my Theme at at /Views/Parts/Image.Summary-VistaImage.cshtml this would get referenced, but it does not (though if I remove the '-VistaImage' the shape does get used, but this would, I believe change this shape for every Content Type, which is not what I want to do).
Any advice/direction on how I should approach this requirement would be apprciated.
Thanks.
From personal experience, when you get that low level in the shapes, alternatives don't work very well, if at all. The only way I best deal with those scenarios is to choose the next applicable shape above it, and do an if statement to determine if its the content you want, in which case to remove the default shape display and implement your own hard-coded layout.
eg if the shape simplay says #display(Model.whatever) and you know that displays is garbage for you, look into the model.
For example, I had trouble creating a 4 leveled menu for bootstrap as it only typically deals with 2 levels, so i manipulated the lowest level shape. I.e:
if{Model.Items.Any()}{
//code to generate another submenu for that menuItem
}
This may not even be the most correct way to address this, just the solution I found has worked.
So in your case I'd use VS debug and breakpoint where the mediafield picker is rendered, and find out if the model holds any information letting you know it's your VistaImage content.

locate forms into view directory folder lotus notes

I created a form to display a specific report instead of a view. iwant the form to locate into the directory folder in which views located. for eg I have a view at 1. Reports\a. Quarterly Reports, I want the reports be to located at 1. Reports\b. No of Request per Country(this is the form). So that when I view the reports they are only in one location. Is this possible?
Ken has good points about the design of the solution. If you need more direct assistance, then I can offer the following solution.
As you're now using a variety of design elements. You need to unify it using a frameset and an outline. Framesets in Notes are the generally the same as their web counterpart. The great thing with Notes is that you can easily add this to your current design.
I would recommend the following order of tasks.
Create the outline. Instructions here
Create the frameset and connect the outline to it. Instructions here.
Set the database launch properties so the frameset loads up when people open the database. Instructions here.
Even though the links point to Lotus Notes version 6, the functionality is still applicable in version 7 and 8. The only other point I would make is that when you click on an outline element it needs to know where the target location to display the data. You define this on the frames in the framesets. Just look at the menu option "Frames" and select "Frame properties" or "Frameset properties" respectively.
You can use a Notes Outline to manage this. Set one up for your database, if you haven't already, and use it as your left-hand navigation in your frameset. If you aren't sure what I'm talking about, try creating a new database based on the Document Library template and take a look at the design. It'll have a frameset, and on the left frame it'll have a Notes Outline.
Once you have your database setup like that, you can control what the user sees in that outline by creating hierarchical outline entries. You can link views, pages, and forms to your outline entries and that way you can have your 1. Reports\a. Quarterly Reports view showing next to your 1. Reports\b.No of Request Per Country form (report).
Even better, you can use different names. Since an Outline manages its order, you don't need to name your entries 1., 2., etc to get them to show in a certain order. You can name them whatever you like and rearrange them in the Outline design screen.

Resources