Marker that hilight a path

  • gix
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
2 months 4 weeks ago #14156 by gix
Replied by gix on topic Marker that hilight a path
i tryed to show :
- markers for office coordinates of recovery_group
- area for polygon
are separated entity and it works but they can't iteract: if i click a marker i have the popup of marker with title and description from datbase but area of all markers are visible on map and i need to show only the area of the marker selected.

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

  • gix
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
2 months 4 weeks ago - 2 months 4 weeks ago #14157 by gix
Replied by gix on topic Marker that hilight a path
i attach images

i have this on my map

but i need a situation like

i want clic a marker and it should show his area
Attachments:
Last edit: 2 months 4 weeks ago by gix.

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

  • gix
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
2 months 4 weeks ago #14161 by gix
Replied by gix on topic Marker that hilight a path
is there a solution for this?

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

More
2 months 4 weeks ago - 2 months 4 weeks ago #14166 by Dima
Replied by Dima on topic Marker that hilight a path
I don't understand you.

Lets step by step

1 - you have ability to display your SQL data as visualization
- as placemarks
- as polylines
- as polygons

2 - if you display your SQL data as polyline you can show its start and end points as placemarks, but it is not included in placemark list

3 - you can manage it by group list to show/hide by group list
- group name gets from assignments (placemark and/or path)

I can see in your image group list and placemark list. I don't know from where your placemarks are.
But you can't create placemark, assigned for group in placemark list, which is based on SQL data for polyline or polygon (line or area)

Don't forget support my developments: post review in JED , donate , help with thanslation ;)
Last edit: 2 months 4 weeks ago by Dima.

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

More
2 months 4 weeks ago #14167 by Dima
Replied by Dima on topic Marker that hilight a path
for all SQL data you can set popup content from SQL. And when you click on line or area - you'll get this text.

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

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

  • gix
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
2 months 4 weeks ago - 2 months 4 weeks ago #14169 by gix
Replied by gix on topic Marker that hilight a path
my marker are from an SQL
my area are from another SQL
records are taken from the same table that have two fields
coord (lat,long)
area (lat,long;lat,long;lat,long....)
i have the same unique ID for record marker and area
obviously, now i use differente SQL so there's no join between a marker record with his area

i think the workaround could be this
Put the unique id of record in marker and in area SQL (CONCAT in some way) and add in visualization->structure so it's passed to map
Now i can use javascript to manage the join and show/hide area when i clic a marker, using ID.

for example:
marker SQL compose the id for marker : CONCAT('markerID', IDTABLE_field) AS idmarkerID
area SQL compose the unique id for area : CONCAT('areaID', IDTABLE_field) AS idareaID
put idmarkerID and idareaID (in some way...) in structure->html text (title and description, i think no, cause show an awful text on map)
so, i have
marker1 (record id=10):
markerID10
area1 (record id=10)
areaID10

marker2 (record id=15):
markerID15
area2 (record ID=15)
areaID15

so, through javascript, when i clic marker with markerID15 i cut away text "markerID" and add "areaID" and search areaID15 area and show it on map

is possible?

In future, a feature for your plugin, i think, could be something like this:
in structure let the user choose coordinates and area together (!) so marker and closed polygon can be managed as an entity
Last edit: 2 months 4 weeks ago by gix.

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

Time to create page: 0.078 seconds

Donate


Go to top