PHP errors
If you see errors while working with application, e.g. error about communication problem, it means that you don't have web connection or there are some errors on PHP script. All script exceptions are logged in this file: gate/data/logs/application.log
.
Uploading map image problems
When uploading map image, it is divided into small tiles on different zoom levels. This operation is quite heavy for some servers, especially when dealing with large images.
There are two most common PHP errors that you can get:
Allowed memory size of xxxx bytes exhausted
This error means that the script exceeded the maximum memory available for PHP script. You have to increase memory limit by changing memory_limit
PHP directive.
Maximum execution time of nn seconds exceeded
This error means that you have to increase the time in seconds in max_execution_time
configuration directive.
For a map 9000x7000px size, PHP memory_limit
should be 512M and max_execution_time
90, respectively. This values are inaccurate, but have worked on testing machine.
If you cannot change PHP directives or you don't have access to it, you can use alternative way of uploading map images described below.
Alternative way of processing and uploading map images
If you found some error described above or you prefer using alternative way of processing and uploading the image, follow this instruction:
- in administartor panel create map and save it
- enter into edition of the recently created map to see what id number it has and remember it
- your local machine (Windows required) in the main package that you received with an app you can find
tilemaker
directory, copy to that directory your map image file and rename it toinput.jpg
- run
convert.bat
file and wait till the end of the process, which will createoutput
directory - on your server ftp open root apppliaction path and go to
uploads/maps
directory - create new directory with name of previously remembered map id
- copy all generated files from
output
directory (there may be many files) into newly created directory on your ftp server - all done :)
Performance issues
Whole application was tested on several machines and the optimal amount of markers displayed on one map is about 250.
If you experience slow downs try to divide your map into 2 parts, this will decrease marker number and application should work faster.
Maps was tested in terms of the size; map with size 20000x10000px worked without any problems.