Recent

Author Topic: Can't register Lazmapviewer 1.0.0.0 using OCM neither manually in Lazarus 4  (Read 1784 times)

WimVan

  • Jr. Member
  • **
  • Posts: 90
Hello,
This week I reinstalled Lazarus (uninstalled old version and it's configuration) version 4 as it was a new clean installation of a programm.
Depending on several prog's I wrote I installed needed packages, components using OCM.
One of my projects uses LazMapviewer.  When I tried to install this it was not succefull and the component is not registerd, neither installed.
Donwloading the package and installing it using install package menu was succesfull BUT, when launching the program I always get the message that maps were nt registered. The programm runs and when opening a map I have to assign a map-type ...

Uninstalling the package and installing the old version 0.2.6 runs without any problem and is nicely registered.

wp

  • Hero Member
  • *****
  • Posts: 13216
using OCM.
What's this? Do you mean "OPM"?

I always get the message that maps were nt registered.
Please show the exact error message. There is no registration process for maps.

when opening a map I have to assign a map-type ...
Again please show the error message - I am not aware of "map types" in the MapViewer packager.

Moreover, specify your operating system so that I can try to reproduce the issue.

WimVan

  • Jr. Member
  • **
  • Posts: 90
Hello,
sorry it is indeed OPM.
Windows 11
There were no problems with Lazarus 3.x and the LazMapviewer v0.26
I uninstalled Lazarus completly and the installed Lazarus 4 and then I tried to install LazMapviewer using OPM.
The package is compiled, but the IDE is NOT rebuild.  Opening a project using the Lazmapviewer-omponent returns the message that no component is registered.

Error's

When opening a porject which uses lazmapvierwer an error appears: 1_error_missing component.jpg
Looking to the OPM to see which in OPM availables packages are installed, we see that nothing is installed (of course, there was no rebuild). 2_lazmapvierer_not_installed.jpg

Finally I installed the package from the harddisk after a download via OPM.  After installation the IDE is automatically rebuild and when lookin to OPM, we see that LazMapviewer is installed.: 3_OPM_view_manual install.jpg

Opening a project containing the Lazmapviewer returns no error, but when running the app in Lazraus or aside, next message appers: 4_error_opening_project.jpg
When clicking OK, nothing is to be done to run the project without errors neither mallfunction op the appllication

When we uninstaal the 1.0.0.0-version of Lazmapviewer and install the older one (V 0.26) no errors occur, IDE is bebuild automatically and no message concerning a provider ... appears when running.

wp

  • Hero Member
  • *****
  • Posts: 13216
Yes I can reproduce this. No idea what went wrong here... I recreated the OPM package and updated OPM - now it installs correctly.

As for the "OpenStreetmap Mapnik" registration: yes, this map provider was renamed for the current version to "OpenStreetmap Standard". Whenever you see this issue in a project, go to the MapProvider property of the TMapView and select "Openstreetmap Standard" from the combobox.

WimVan

  • Jr. Member
  • **
  • Posts: 90
Many thanks for the effort.

When I got the message of Provider, I changed it to another one and even removed de mentioned provider. And when rerunning, thenew assigend provider was mentioned in tat error ...

Just for info.

I'l will try the new OPM-version of Lazmapviewer this weekend.

Dzandaa

  • Hero Member
  • *****
  • Posts: 501
  • From C# to Lazarus
Hi,

Thank you wp.

I didn't reinstall MapViewer from OMP but I was aware of the problem.
The LazMapViewer package was downloaded in "onlinepackagemanager",
but I had to install all 4 parts from the .pkg

B->
Regards,
Dzandaa

WimVan

  • Jr. Member
  • **
  • Posts: 90
Hi,
WP thanks for the time you invest in this projects.

I tried the new version and is seems to install perfect. IDE is rebuild and the map-component is available.
But, What map-provider I choose in the property-setup at designtime, when I run the project I always get the message that the provider is not registered and after clicking the OK-button I can continue whatever provider I choose.
The mention provider in the message is not always that provider I assigned as property.

wp

  • Hero Member
  • *****
  • Posts: 13216
Here's what I am doing:
Yesterday I had installed the Mapviewer from OPM into a Laz 4.0/64 bit on Win-11. Opened the IDE. Into the default form of the new project I drop a TMapView, select a map provider ("Google Maps", later "ArcGIS World StreetMap", set MapView.Active to true, run the project - no issue. Saved the project. Load some other project. Load the Mapview project again - run - no problem.

So, in total, I cannot reproduce the reported behaviour.

Are you sure that the provider that you selected does not require an API key? Look at mvengine_mapreg.inc to see which provider do need an API key. (But IIRC, such providers are not listed in the combobox anyway...)

 

TinyPortal © 2005-2018