Marker that hilight a path

  • gix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago - 3 years 3 months ago #14170 by gix
Replied by gix on topic Marker that hilight a path
other thing
for polygon (area) i'm not able to show a dynamic description in popup
i have html text from visualization->structure but it doesn't show when i click area but show "title" and "description" static text that i put in menu path
Last edit: 3 years 3 months ago by gix.

Please Log in or Create an account to join the conversation.

  • gix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago - 3 years 3 months ago #14172 by gix
Replied by gix on topic Marker that hilight a path
i'm analyzing source page when i put my area on map

i think generation of area is this
zhomObjMgr.PathXAdd(14, plPath200000088);
plPath200000088.zhomPathID = 200000088;
plPath200000088.zhomObjectType = 1;
plPath200000088.zhomInfowinContent = contentPathString200000088;
plPath200000088.zhomTitle = "gruppi recupero aree";
plPath200000088.zhomHoverChangeColor = 1;
plPath200000088.zhomStrokeColor = "#FF0000";
plPath200000088.zhomFillColor = "#FF0000";
plPath200000088.on('mouseover', function(event) {
plPath200000088.setStyle({
color: "transparent"
,fillColor: "0.1"
});
});

this line plPath200000088.zhomTitle = "gruppi recupero aree";
is not my text from structure and there isn't my idarea i put in structure so i can't join with marker

or i forget something?
Last edit: 3 years 3 months ago by gix.

Please Log in or Create an account to join the conversation.

  • gix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago #14173 by gix
Replied by gix on topic Marker that hilight a path
meanwhile i wait a response from Dima
i donate and say to all:

DONATE, THIS IS A GREAT PIECE OF SOFTWARE!!!!

Please Log in or Create an account to join the conversation.

  • gix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 months ago #14175 by gix
Replied by gix on topic Marker that hilight a path
i analize better code for path
contentPathString200000112 = contentPathString2;
 var allCoordinates200000112 = [ 
 [43.552667,16.433], [43.383,16.909167], [43.1485,17.2495], [43.061833,16.826667], [43.1545,16.359667], [43.491,15.9795] 
 ]; 
 var plPath200000112 = L.polygon(allCoordinates200000112, {
 geodesic: false, 
 color: "#FF0000"
,opacity: 0.3
,weight: 1
,fillColor: "#FF0000"
,fillOpacity: 0.1
,lineJoin: 'round'
 });
  zhomObjMgr.PathXAdd(14, plPath200000112);
  plPath200000112.zhomPathID = 200000112;
  plPath200000112.zhomObjectType = 1;
  plPath200000112.zhomInfowinContent = contentPathString200000112;
  plPath200000112.zhomTitle = "gruppi recupero";
  plPath200000112.zhomHoverChangeColor = 1;
  plPath200000112.zhomStrokeColor = "#FF0000";
  plPath200000112.zhomFillColor = "#FF0000";
  plPath200000112.on('mouseover', function(event) {
    plPath200000112.setStyle({
     color: "transparent"
    ,fillColor: "0.1"
      });
  });
  plPath200000112.on('mouseout', function(event) {
    plPath200000112.setStyle({
     color: "#FF0000"
    ,fillColor: "#FF0000"
      });
  });
  plPath200000112.bindPopup(plPath200000112.zhomInfowinContent);
  plPath200000112.on('click', function(event) {
  Map_Animate_Marker_Hide_Force(map);
 this.openPopup();
  });


first line put contentpathstring2 in contentpath of path
decllaration of contentPathString2 is on top of first path
var contentPathString2 = "";

is empty
is possible to populate with a field from structure (i need recordID) ?

to use javascript to join marker and his area i need the id of my record in both, marker and area.

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #14177 by Dima
Replied by Dima on topic Marker that hilight a path
You can't access to map objects, it is internal variables.
You can't show/hide areas by clicking on placemarks

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #14181 by admin
Replied by admin on topic Marker that hilight a path
You can define from what column get description (popup content)
- visualization structure
-- columns
---- title, description, addition HTML

Please Log in or Create an account to join the conversation.

Time to create page: 0.098 seconds

Donate


Go to top