How to open OpenStreetMap iD Editor with a Custom Map Data overlay/boundary pre-loaded? - editor

In the OpenStreetMap iD Editor (the main one you get on the website when you login and try to edit), there is a way to overlay a custom boundary, as shown in screenshot below.
Latest Task Manager is displaying the iD editor in an iframe or so, but earlier versions used to just open it in a new tab, with the custom overlay data still working either through a URL param, or maybe some header attached.
How is this done? I want to overlay a similar boundary over iD editor when a user clicks a button on my website and it opens iD editor in a new tab with the chosen co-ordinates.

Pass on link to gpx as url params.
https://github.com/openstreetmap/iD/blob/develop/API.md
Edit by nikhil: Found that in main openstreetmap site, we have to put the gpx param after a # instead of putting as a regular query parameter. So, this works:
https://www.openstreetmap.org/edit#gpx=https%3A//server.nikhilvj.co.in/pmgsy/gpx/1445.gpx
Ref: https://github.com/openstreetmap/openstreetmap-website/issues/3540

Related

SSRS Action Expression - open a new page using a field value as a url

I have a table of urls which represent saved PDFS and are displayed in an SSRS report. I made this field clickable and the action opens the pdf in the same window which allows me to save the pdf to my desktop. But when I hit the windows back button I have to reenter the parameter.
I prefer to click on the field and it open in a new window. In fact, I would love to be able to click one button and open all the urls in a new window or at least more than one.
I can't seem to get the syntax right to even open 1 url in a new window.
Help! What is wrong with my syntax?
="javascript:void(window.open('Fields!Standard_view_PDF.Value & "', '_blank'))"
You need to tell the link that it is a file to open.
Try this instead.
="javascript:void(window.open('file:"+Fields!Standard_view_PDF.Value+"','_blank'))"

Business Objects 4 web Intelligence: How to create a button to switch tabs?

I have a multi-tab document. On my front page I would like to create a hyperlink to another tab.
This is what I've tried so far:
Create a free standing cell with the text 'Press this!'
Right click > Linking > Add Document link & point to the tab with these settings:
This has the problem of opening a new document and refreshing it (takes 3 to 5 minutes). How can I make the 'Press this!' button just switch to the target tab without opening a new document or refreshing?
There is no way to jump to a different report within the same document. The OpenDocument feature you're using does just what its name implies: opening a document (optionally specifying which report within that document to show).
In summary: this feature is not supported.

Export highchart for print preview

I have to create a print preview page where I have to show some information and a highchart of the original page. Is there a way to export the highchart graph from one page to another?
There are probably many ways to accomplish this.
What language are you working in?
I would try it this way:
set the chart options in an external js file
include that js file in both the original page, and the 'preview' page
I assume the user will click on a link or button to open the preview page...?
send the data via POST to the new page, and instantiate the chart on the new page on page load
You could also look into using the Export package to
on link/button click, export the chart as an image, to the server
pass the url of the saved image to the new page, and load the image there
I have not worked with exporting to the server, and wouldn't bother with the set up for this when you can just pass the data and build the chart on the new page, but it's an option.

What is the best way to manipulate an existing PDF-Document under iOS?

I need to individualize documents within an iOS-App. I could provide the origin-documents as DOCX, PDF, PPT etc. The output-format has to be PDF.
My minimun requirement is to fill some text-fields. Nice to have would be to replace an image, too.
I´m quite used to generate PDFs programmatically using UIGraphicsBeginPDFContextToFile etc. But in my current case I don´t want to create the whole document programmatically, I just want to replace some content.
Any hints / tipps?
Thank you in advance.
DOCX is a zip - format file so you can process the contents programmatically and the reconstruct the zip file. PPT is a binary format though newer versions of PowerPoint might also construct zip-oriented versions that you can programmatically process. You mentioned though that you need don't want to programmatically process these documents - which I would probably also do only as a last resort.
For your DOCX origin/source documents (or doc,odt,rtf but not ppt/pdf) you could use Docmosis cloud services if your app can have the external dependency. You would upload your DOCX origin documents with placeholders for text-fields or images as a one-off/occasional task. Your iOS app then calls Docmosis sending instructions and data to create the output PDF and either stream it back to the app or email/store it or both.
The upside is it takes all the load and coding away from the iOS application (there is an SDK). The downside is it is an external depdendency. Please note I work for the company the created Docmosis.
Hope that helps.
Why not just load a page in a webView modal that points to a URL of a page you create? The main parts of the page would be static, and then the fields you need to customize would be populated via Javascript or PHP.
For example, we have a contact form in our app that gives you an option to view the details of your completed form after you submit. When the user clicks on the button to view the Contact Confirmation, it loads example.com/confirmation.php in a modal view within the iOS App.
On the confirmation.php page (on the web), I use PHP to pull in $_GET variables from the URL parameters which then populates the page with my static content, and their customized information that they entered into the form.

Adobe Indesign SWF Export - Hyperlinks

I've been using Indesign to create some brochures. I export them as SWF to display them as a flip book.
The next step I want to take is to put hyperlinks on each product in my brochure so that when a user clicks them the item gets added to their shopping basket, or something similar.
First I tried using a hyperlink value of ?product=code, but as there's no http://, whenever you open this link it just opens a blank tab.
Secondly I tried a hyperlink value of http://linktosite.com/flipbook.php?product=code. This worked fine but as the users may want to order several products from the catalogue they're going to click on a lot of the links, which will in turn open up loads of new tabs in the browser.
My question is: Is there a way of passing hyperlink values through the same page the SWF is on? I don't want the links to open a new tab everytime.
How can I achieve this?
Indesign cs5.5 has new feature called 'web viewer'in windows/extensions/overlay creator. This let you browsing another website in indesign file.

Resources