Languages

Menu
Sites
Language
How to paint lines on the map

Hello,

How to paint lines on the map. The line should be thick and black

 

Evas_Object *map;
Elm_Map_Overlay *line;
line = elm_map_overlay_line_add(map, 21.012, 52.230, 21.112, 52.330);
elm_map_overlay_color_set(line, 0, 0, 0, 255);

After this code is executed, the line is thin and green.

 

Please Help me.

Responses

2 Replies
Yasin Ali

Hello,

I think you may draw multiple line side by side to make that line thick.
Default color is green of that line. If you get any direct api to change color please share.

Some idea on code to thick:
 

line = elm_map_overlay_line_add(map, 2.352000, 48.857000, 21.112, 52.330);
 double curr_lat = 48.857000;
 double extra = 0.000001;
 for (int i = 0;  i < 100;  i++) {
  line = elm_map_overlay_line_add(map, 2.352000, curr_lat, 21.112, 52.330);
  curr_lat = curr_lat+extra;
 }


Hope it will help.

Tomasz Paciorek

Thanks,
It's a pity that it will not be as easy as on Android :(