Jump to content

Create UniMap by code


Yang91

Recommended Posts

Hi

 

I try to create a Unimap component on my form

map:=TUniMap.Create(self);
with map do
  begin
    top:=673;left:=21;height:=500;width:=650;
    Name:='ClientMap';
    DefaultZoom:=6;
    Visible:=true;
    Parent:=uniContainerPanel5;
    with MapLayers.Add do
      begin
       LayerType:=mlGoogle;
      end;
  end;

 

But when map tries to display, I have the following error :

 L.gridLayer.googleMutant is not a function

var O433_uniLayersObject={};O433_uniMapmarker=L.layerGroup();O433_uniMappolyline=......

 

 

What am I doing wrong ?

2022-05-18_10-39-43.png

Link to comment
Share on other sites

4 hours ago, Yang91 said:

Hi

 

I try to create a Unimap component on my form

map:=TUniMap.Create(self);
with map do
  begin
    top:=673;left:=21;height:=500;width:=650;
    Name:='ClientMap';
    DefaultZoom:=6;
    Visible:=true;
    Parent:=uniContainerPanel5;
    with MapLayers.Add do
      begin
       LayerType:=mlGoogle;
      end;
  end;

 

But when map tries to display, I have the following error :

 L.gridLayer.googleMutant is not a function

var O433_uniLayersObject={};O433_uniMapmarker=L.layerGroup();O433_uniMappolyline=......

 

 

What am I doing wrong ?

2022-05-18_10-39-43.png

I will analyze it.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...