Why is non of the specified formatconstructors called for dragging and drop images on the map? I would like to write my own ol.format to read geotagged images (e.g. jpg), but the handled event has never an image file attached.
Thanks.
Related
I am using a TMapView component in a Firemonkey project. I have eventhandlers that fire when a user double clicks on a marker (and also a separate event for single click). However, everytime double tap on a marker the map automatically zooms, in addition to firing my event. I've been looking through the doucmentation, but I have yet to find a property or method that handles this. So, is there any way to turn off this feature in TMapView.
I am using OpenLayers 3 with a Zoomify tile source. Based on various conditions I have to re-render my set of tiles on the server side and display the new set to the user as soon as possible.
What I would want to do is to display a single zoom level as soon as this is rendered on the server side, and OpenLayers automatically try to get the other tiles when they are ready. But I found that once a tile is not found OpenLayers won't try to reload it afterwards.
I am trying to do this manually and I want to catch the tileloaderror event on the Zoomify Source. The event is triggered correctly and I receive the Tile url that was not found. What would I want to do is to add a function here on a timeout to retry to load the tile but I didn't find anything in the API.
Is there any method to try to reload a tile if it fails ?
If anyone has encountered this issue, this will be supported natively by OpenLayers. Reference
I am using the Teechart component that comes with Delphi XE3.
I need to have multiple graphs and then save them out to a jpg file.
The user can select a keyword and that displays each graph.
What I need to do is for each keyword, draw the graph and then
save it out to a file, without user interaction.
I have tried the event OnAfterDraw and then save the chart as an
image and then call for another keyword. However this does not work
because when you save the image it recalls the OnAfterDraw and I
either end up an endless loop OR if I set the event to nil and then
reset it back, it never gets called again.
Does anyone have any suggestions on how to do this please ?
Regards
Anthoni
You could try calling TChart.Draw(); the chart to force the chart being rendered before exporting so that you don't have the need to use the OnAfterDraw event.
OK, So I've found a way but it seems very kludgy to me.
Basically, I placed a Timer on the form and moved the teechart OnAfterDraw event to the private section. Then I build my keyword list and then start the timer.
The timer, first disables itself then adds the OnAfterDraw event to the TeeChart before calling a procedure to fill in the chart information.
Inside OnAfterDraw I save out the chart as an image, check if any more keywords are available and if so, reactivate the timer, otherwise fire my own event.
Like I said, this works but not sure of the overall ramifications of it.
If anyone has any suggestions or comments on this method I would greatly aprpeciate it.
Regards
Anthoni
When I open a folder with an OpenDialog, how can I filter it so users can view only certain files (e.g., Stringgrid, *.sg) and the files with any other extension do not appear in the dialog window?
Set the OpenDialog.Filter property to the file filter you want.
You can do this in the Object Inspector:
Click in the Filter property, and you'll see a small button appear on the right edge with ....
Click that, and you'll see a dialog appear.
On the left side is the description of the file (for instance, Excel files (*.xls)). The right side is the filter you want to use, as in *.xls.
You can also set it in code before displaying your dialog:
OpenDialog1.Filter := 'Excel files (*.xls)|*.xls';
Of course, replace the Excel stuff with any description and mask you want to use.
The Filter and FilterIndex properties are used to specify which file extension(s) to display (note that the user can override the filter manually, though).
The OnIncludeItem event is used to selectively allow/disallow individual files/folders from being listed in the dialog.
Touch events do not get triggered on SVG document when a USE element has been used to draw a shape(via, xlink:href). The USE element references another element and indicates that the graphical content of the element is drawn here. However, touch events get triggered on the document in the absence of USE element.
Can anyone help me if am doing anything wrong?
This example shows the working touch events: http://jsfiddle.net/qGWQj
This examples doesn't work: http://jsfiddle.net/5gAPn/1
The problem happens on the iPad using iOS 4.3.5.