for Xojo 2020r2.1 targets Desktop Windows, Linux, macOS
location on picture is a plugin control to show locations on static images.
it can show a location as filled colored circle, as icon, it can draw tracks by provided points,
it have mouse over to show locations name, it provide also click events for locations.
you need to save the map in Maps sub Folder plus a textfile with minimal data.
then add the name into the city map combobox.
(it use a build step to copy this files at build.)
Hi Markus,
great work and I would love to re use it. Have downloaded the piece of Code but unfortunately I get an Error already during compiling within the Sub “Load”
Code Line:
Var st As TextInputStream = TextInputStream.Open(dataFile)
thanks
i guess that is the part where the map information is loaded from a text file.
compare the build step from my example with your project.
for each map .png there should be a .txt file.
this text file contains
Is the file actually called ‘Maps’ with no extension?
If it is a text file, it shows as Maps in the IDE, but that is not what the file is called.
It remains Maps.txt (for example) in the resources folder
SpecialFolder.Resources.Child("Maps.txt")
If it is a text file, you dont even need to use textinputstream to read it.
Just assign it to a string variable.
Var contentsofMaps as string
contentsofMaps = Maps
If it genuinely has no extension, be wary of case-sensitive file systems.