I added a point on openstreetmap several months ago, and that point is not showing in the standard layer (or any other layer).
When I click on the interrogation mark, I can see that the point exist in the database, but no icon is showing for that point :
If someone can tell me why this is happening (because it is not the first time), I will really appreciate it.
Here are also the point link https://www.openstreetmap.org/node/4541228705 to verify by yourself if you want to.
Not all POIs are shown on the standard layer. This can have several reasons:
The POI is too unimportant to display it.
The POI hasn't been added to the renderer stylesheet yet.
The POI is in the stylesheet but not in the renderer database and a re-import of the database would be necessary.
The POI is in the stylesheet and the database but there is not enough space to show it.
Your POI is tagged as office=association. Currently the office key is not rendered on the standard style. There is already a [corresponding issue for openstreetmap-carto (the current default rendering style).
In other words: You did everything right. The reason for the office not being rendered is not your fault. Unfortunately you have to wait until the rendering stylesheet gets updated (you might participate in the mentioned issue to speed things up). Do not change the tagging just to make it appear on the map (also called tagging for the renderer). The good news is: Geocoders / routing engines will find your office nevertheless (e.g. Nominatim)! There might even exist other OSM-based maps with a different stylesheet that already show your POI.
Related
I have two or more location duplicate point data in my KML. In google earth I can only see one point data at first. When I click it and then its separated, and able to click other duplicate point.
My problem is that I don't know the logic which point is front in the first place. I need specific point data to be at front before it's separated because of visual perspective. I try to change placemarks order in KML but the result was same.
I think you're asking how to control which point's ICON shows up at a location with multiple points, before you click on it to expand/separate them all out? Unfortunately there is no way that I know of to control which point/icon shows up on top. It seems like when I create or edit points at the same location, the last one to be touched/edited comes out on top, but I don't know if that's consistent, nor whether it persists when saved to KML... probably not.
By the way, welcome to StackOverflow. Please read the instructions on how to ask good questions. Your question is not very clear, and would benefit from including info on what you have already tried, and what didn't work.
So I am working on a project that awards points to students for submitting assignments or participating in forums, these points are then exposed as an Http resource using Flask.
The points are calculated by looking at the events triggered for each student.
One of the requirements right now is to add a box next to the student's name that shows the total amount of points they have. I have two ways of accessing the points, either by an http request from moodle or by storing and retrieving the points from moodle's database.
My question is what is the best approach of creating this "box", I have tried using moodle blocks and hacking the code but nothing seems to be working. Is creating a plugin for this the only solution or is there a simpler way to do it (if it is even possible)?
To answer your question properly you should have provided at least the theme and the Moodle version you work with. Should this box be displayed everywhere? Is the score calculated for every course individually?
Two proposals that came into my mind:
You could create a custom plugin of type block. There you can display the score of the user of the session and the top ten for example (If the score is calculated for each course individually). A disadvantage is that every teacher of a course could remove that block easily, if he or she wants to.
If the score counts system-wide you could put that box at the start page of your Moodle website, where only people with higher rights will be able to remove it.
If you use boost you could display the score in the navbar right next to the users name. For that you will have to create a new child theme of boost and overwrite navbar.mustache of theme_boost which get's it's information from columns2.php because it's included into columns2.mustache. In this PHP file you can include your logic and display it with the HTML which you put into navbar.mustache.
Of course these are not really simple ways to do that. But at the moment I doubt that an easy solution exists for this problem.
Oftentimes when I browse Leaflet maps with Mapbox.com data (using some sort of open, standardized database), I notice that the satellite images and/or data are out of date. It would be extremely useful to somehow get to see the year/date when the current tile/map/view was shot/obtained/photographed/created/edited, in order to determine how out of date with reality a given location is.
Is this data available? If so, how would I best display it in Leaflet? I imagine some sort of subtle year/date text in the middle of each "area" or something, or maybe allow me to right-click anywhere to get a little pop-up telling me this info.
I'm investigating Adobe CQ5 and would like any advice on how to integrate its drag-and-drop UI to create a responsive website. It seems as if it works on a concept of fairly bland templates with components that can be dropped in pretty much anywhere, including things like "three-column control" - which would make designing a responsive grid structure very hard (as it would be hard to prevent users from dropping in a control that could ruin the layout).
Does anyone have any experience or advice on this? I'm really looking for deep technical details on the structure of templates vs components (paragraphs), and where/how to manage to the CSS.
CQ5 offers ways to control what can be done within a template, so thinking that components "can be dropped in pretty much anywhere" may be misleading. Page templates are designed and configured so that you control which components can be added to a certain area of a page. This allows you to only make those components available that will work with the template layout, excluding components that would wreck the layout. Then authors are only allowed to use things that will work. If they attempt to drag a component onto a paragraph (parsys) where that component has not been configured as available, the UI will not allow them to use it there. So CQ actually makes it easy to prevent users from dropping a control somewhere that would ruin the layout.
This is outlined a bit here:
http://dev.day.com/docs/en/cq/current/howto/components_develop.html#Adding%20a%20new%20component%20to%20the%20paragraph%20system%20%28design%20%20%20%20%20mode%29 which states that
"The components can be activated (or deactivated) to determine which
are offered to the author when editing a page."
When it comes to CSS and JavaScript, you can create a client library and then include the relevant client library on the page. Backend CQ functionality will take care of combining multiple CSS (or JavaScript) files into a single minified file to allow for a single HTTP request of an optimized file. This it outlined a bit here:
http://dev.day.com/docs/en/cq/current/developing/widgets.html#Including%20the%20Client-Sided%20Code%20in%20a%20Page as well as
http://dev.day.com/docs/en/cq/current/howto/taglib.html#%3Ccq:includeClientLib%3E
So you might develop several components that share a client library, then when any of the components is added to a paragraph the client library will be included on the page. You may also want a CSS library that applies to all the templates to give a common look and feel, yet allow components to add their own when they are used.
These guidelines for using templates and components outline how you provide control, yet flexibility:
http://dev.day.com/docs/en/cq/5-5/developing/developing_guidelines_bestpractices.html#Guidelines%20for%20Using%20Templates%20and%20Components
I'll document our successful WIP experience with RWD and CQ5
Assumptions:
A well documented style guide.
Our First Steps:
Modified existing column control component css to utilize twitter bootstrap grid css.
Create a base page property allowing two different classes on the grid container to be set and inherited by child pages. (container||container-fluid).
Leverage out-of-the-box components where ever possible.
All component widths inherit the width of their parent container allowing for components to be dropped into any location within a template.
Issues:
The out-of-the-box column control component can not be nested.
We are looking into building a custom column control component.
Takeaways: this is an evolutionary project and we are constantly iterating.
With the recent launch of AEM 6.0, they have an example website called as Geomatrixx Media. This website is responsive.
You can take this example as reference and start building on top of it.
I am currently working on an educational project where I would like to add some PDF reading functionality to an iPhone app. I know that it is possible to add a UIWebView and display the PDF there, however I would like to add the ability to show page number, 'next', 'previous' buttons etc. Is CGPDFDocument the direction that I should be headed or is there a better (ie more feature rich) library available? I have had a look around to try and find the capabilities of CGPDFDocument, but besides the API reference there is not much available.
Would it also be possible with this to annotate a pdf?
Thanks
JP
Here is a good (working) example of the CGPDF functions:
http://www.olivetoast.com/blog/2009/08/simple-uiscrollview-catiledlayer-pdf-example/
It uses a CATiledLayer + UIScrollView, this may not be appropriate for a reader of sorts, but it still shows you how to load and draw a PDF doc without UIWebView (which severely restricts your abilities).
Change the layer type back to a layer, add in page handling using CGPDFDocumentGetNumberOfPages and then CGPDFDocumentGetPage and you have a pretty good reader.
I don't know how to perform annotations, I suspect you would need your own data structure on top of the document.
Update: 04 Feb 2012
Check out this project, it's opensource and very well made.
I think it could be a great starting point for your PDF reader.
Project:
http://www.vfr.org/
Source:
https://github.com/vfr/Reader
There are PDF reader apps, do these not support annotations?
Another angle could be for the iPhone app to read/download pages (images) from the internet, where one could add basic annotations to that (image/layer based), these coordinates could be saved to a server. Those annotations could then be added programatically to a PDF on the server for download?