\hypertarget{map_example_02_8c-example}{}\doxysection{map\+\_\+example\+\_\+02.\+c}

\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ <Elementary.h>}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\_Overlay\_Data}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *name;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *file;}
\DoxyCodeLine{\}\ Overlay\_Data;}
\DoxyCodeLine{}
\DoxyCodeLine{Overlay\_Data\ data\_argentina\ =\ \{\textcolor{stringliteral}{"{}Argentina"{}},\ NULL\};}
\DoxyCodeLine{Overlay\_Data\ data\_chile\ =\ \{\textcolor{stringliteral}{"{}Chile"{}},\ NULL\};}
\DoxyCodeLine{Overlay\_Data\ data\_sampa\ =\ \{\textcolor{stringliteral}{"{}São\ Paulo"{}},\ NULL\};}
\DoxyCodeLine{Overlay\_Data\ data\_rio\ =\ \{\textcolor{stringliteral}{"{}Rio\ de\ Janeiro"{}},\ NULL\};}
\DoxyCodeLine{Overlay\_Data\ data\_brasilia\ =\ \{\textcolor{stringliteral}{"{}Brasília"{}},\ NULL\};}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{struct__Elm__Map__Overlay}{Elm\_Map\_Overlay}}\ *bubble;}
\DoxyCodeLine{\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *data\_dir;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *}
\DoxyCodeLine{\_icon\_get(\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *file)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *icon\ =\ \mbox{\hyperlink{group__Elm__Icon_gac369f2d67be417e5cff81e8f001ff326}{elm\_icon\_add}}(obj);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Image_gad1a96ede5f513042cef3c1dac4572f73}{elm\_image\_file\_set}}(icon,\ file,\ NULL);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(icon);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ icon;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *}
\DoxyCodeLine{\_city\_icon\_get(\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ buf[256];}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/icon\_07.png"{}},\ data\_dir);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \_icon\_get(obj,\ buf);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *}
\DoxyCodeLine{\_clas\_city\_icon\_get(\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ buf[256];}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/icon\_05.png"{}},\ data\_dir);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \_icon\_get(obj,\ buf);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *}
\DoxyCodeLine{\_country\_icon\_get(\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ buf[256];}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/icon\_06.png"{}},\ data\_dir);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \_icon\_get(obj,\ buf);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *}
\DoxyCodeLine{\_clas\_country\_icon\_get(\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ buf[256];}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/icon\_04.png"{}},\ data\_dir);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \_icon\_get(obj,\ buf);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *}
\DoxyCodeLine{\_box\_get(\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj,\ Overlay\_Data\ *data)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *bx,\ *img,\ *label;}
\DoxyCodeLine{\ \ \ bx\ =\ \mbox{\hyperlink{group__Elm__Box__Group_ga49ec615c90bf8bead2158d5ffab2e445}{elm\_box\_add}}(obj);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(bx);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ img\ =\ \mbox{\hyperlink{group__Evas__Object__Image_ga6472e3566f3f4948f2c8d37dbbb91999}{evas\_object\_image\_add}}(\mbox{\hyperlink{group__Evas__Object__Group_ga7e211219d11abced5f3089362f7476b9}{evas\_object\_evas\_get}}(obj));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Image_gac2e588476b16b04f85ca9a594c140c1d}{evas\_object\_image\_file\_set}}(img,\ data-\/>file,\ NULL);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Image_gaf3dae548e4434e771dafea8f791e7164}{evas\_object\_image\_filled\_set}}(img,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_gaf20fdb7dc524a95091d72d24cf6a05e8}{evas\_object\_size\_hint\_min\_set}}(img,\ 64,\ 64);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(img);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(bx,\ img);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ label\ =\ \mbox{\hyperlink{group__Elm__Label__Group_ga39a584d245f8a4b18d742e3ede702507}{elm\_label\_add}}(obj);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(label,\ data-\/>name);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(label);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(bx,\ label);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ bx;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_overlay\_cb(\textcolor{keywordtype}{void}\ *data\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *map,\ \textcolor{keywordtype}{void}\ *ev)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}Overlay\ clicked\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{struct__Elm__Map__Overlay}{Elm\_Map\_Overlay}}\ *overlay\ =\ ev;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *bx;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ prevent\ duplication}}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!bubble)\ \ bubble\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga508f22db38313d221f95d69e2471b2f1}{elm\_map\_overlay\_bubble\_add}}(map);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga509d308528ef4e0ee2f67f4513caae79}{elm\_map\_overlay\_bubble\_follow}}(bubble,\ overlay);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga9f32522cadd9d1aa4e2de0de2190f2ad}{elm\_map\_overlay\_bubble\_content\_clear}}(bubble);}
\DoxyCodeLine{\ \ \ bx\ =\ \_box\_get(map,\ \mbox{\hyperlink{group__Elm__Map__Group_ga0aa9c89fba9c64a1f2c975f5c45f62a3}{elm\_map\_overlay\_data\_get}}(overlay));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga09f6eac5ac790f1661358fe1c33d5382}{elm\_map\_overlay\_bubble\_content\_append}}(bubble,\ bx);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_bt\_zoom\_in(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *ev\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *map\ =\ data;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ zoom;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_gaacec2a1019adf71a9b7e3b5fa011c90e}{elm\_map\_zoom\_mode\_set}}(map,\ \mbox{\hyperlink{group__Elm__Map__Group_ggae60f2343c0e098264c246d7e2679abe5a35d8c2519926ab59a7bd5835739cd9b7}{ELM\_MAP\_ZOOM\_MODE\_MANUAL}});}
\DoxyCodeLine{\ \ \ zoom\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga8e5d0739948105e07d77a00013831f6c}{elm\_map\_zoom\_get}}(map);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga6869a7b99657ee01b0ee19c68c47fc0a}{elm\_map\_zoom\_set}}(map,\ zoom\ +\ 1);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_bt\_zoom\_out(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *ev\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *map\ =\ data;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ zoom;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_gaacec2a1019adf71a9b7e3b5fa011c90e}{elm\_map\_zoom\_mode\_set}}(map,\ \mbox{\hyperlink{group__Elm__Map__Group_ggae60f2343c0e098264c246d7e2679abe5a35d8c2519926ab59a7bd5835739cd9b7}{ELM\_MAP\_ZOOM\_MODE\_MANUAL}});}
\DoxyCodeLine{\ \ \ zoom\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga8e5d0739948105e07d77a00013831f6c}{elm\_map\_zoom\_get}}(map);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga6869a7b99657ee01b0ee19c68c47fc0a}{elm\_map\_zoom\_set}}(map,\ zoom\ -\/\ 1);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_bt\_zoom\_fit(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *map\ =\ data;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_gaacec2a1019adf71a9b7e3b5fa011c90e}{elm\_map\_zoom\_mode\_set}}(map,\ \mbox{\hyperlink{group__Elm__Map__Group_ggae60f2343c0e098264c246d7e2679abe5a2146e83a3cb0809732a6643a765b6e21}{ELM\_MAP\_ZOOM\_MODE\_AUTO\_FIT}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_bt\_zoom\_fill(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *map\ =\ data;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_gaacec2a1019adf71a9b7e3b5fa011c90e}{elm\_map\_zoom\_mode\_set}}(map,\ \mbox{\hyperlink{group__Elm__Map__Group_ggae60f2343c0e098264c246d7e2679abe5a380228deffe851d3598cd2b0e22948ad}{ELM\_MAP\_ZOOM\_MODE\_AUTO\_FILL}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{comment}{/*\ FIXME:\ it\ shouldn't\ be\ required.\ For\ unknown\ reason\ map\ won't\ call}}
\DoxyCodeLine{\textcolor{comment}{\ *\ pan\_calculate\ until\ shot\ delay\ time,\ but\ then\ it\ will\ take\ a\ screenshot}}
\DoxyCodeLine{\textcolor{comment}{\ *\ when\ the\ map\ isn't\ loaded\ yet\ (actually\ it\ won't\ be\ downloaded,\ because}}
\DoxyCodeLine{\textcolor{comment}{\ *\ after\ the\ SS\ it\ will\ kill\ the\ example).\ */}}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}}}
\DoxyCodeLine{\_nasty\_hack(\textcolor{keywordtype}{void}\ *data)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *o\ =\ data;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}}\ *e\ =\ \mbox{\hyperlink{group__Evas__Object__Group_ga7e211219d11abced5f3089362f7476b9}{evas\_object\_evas\_get}}(o);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Smart__Object__Group_ga35e48a7ce7639dbe96dc384224361eb6}{evas\_smart\_objects\_calculate}}(e);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gae0c653baad8836232c0dc27f91f875d6}{ECORE\_CALLBACK\_CANCEL}};}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{EAPI\_MAIN\ \textcolor{keywordtype}{int}}
\DoxyCodeLine{elm\_main(\textcolor{keywordtype}{int}\ argc\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{char}\ **argv\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *win,\ *map,\ *box,\ *bt;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *ovls\ =\ NULL;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{struct__Elm__Map__Overlay}{Elm\_Map\_Overlay}}\ *ovl,\ *city\_clas,\ *country\_clas;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ buf[255];}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__App_ga0cefb59efb95841232561d67e34d9909}{elm\_app\_info\_set}}(elm\_main,\ \textcolor{stringliteral}{"{}elementary"{}},\ \textcolor{stringliteral}{"{}images"{}});}
\DoxyCodeLine{\ \ \ data\_dir\ =\ \mbox{\hyperlink{group__Elm__App_gab10cf98c5aa3936dfda01d6bca366d09}{elm\_app\_data\_dir\_get}}();}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/rock\_01.jpg"{}},\ \textcolor{stringliteral}{"{}sdf"{}});}
\DoxyCodeLine{\ \ \ data\_argentina.file\ =\ strdup(buf);}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/rock\_02.jpg"{}},\ \textcolor{stringliteral}{"{}sdf"{}});}
\DoxyCodeLine{\ \ \ data\_chile.file\ =\ strdup(buf);}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/sky\_01.jpg"{}},\ \textcolor{stringliteral}{"{}sdf"{}});}
\DoxyCodeLine{\ \ \ data\_sampa.file\ =\ strdup(buf);}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/sky\_02.jpg"{}},\ \textcolor{stringliteral}{"{}sdf"{}});}
\DoxyCodeLine{\ \ \ data\_rio.file\ =\ strdup(buf);}
\DoxyCodeLine{\ \ \ snprintf(buf,\ \textcolor{keyword}{sizeof}(buf),\ \textcolor{stringliteral}{"{}\%s/images/sky\_03.jpg"{}},\ \textcolor{stringliteral}{"{}sdf"{}});}
\DoxyCodeLine{\ \ \ data\_brasilia.file\ =\ strdup(buf);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__General_ga7a05f37fd3a019da5e26c5fc91fcd937}{elm\_policy\_set}}(\mbox{\hyperlink{group__Elm__General_ggaa16f3378ecdbf660fa378402e3c5a0a9a02fadb6faada04b19d0fa42c11a8d32a}{ELM\_POLICY\_QUIT}},\ \mbox{\hyperlink{group__Elm__General_gga46af37e6ac2c406321060be827117196abbe0962d88ae12afe1a173da881f56cd}{ELM\_POLICY\_QUIT\_LAST\_WINDOW\_CLOSED}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ win\ =\ \mbox{\hyperlink{group__Elm__Win__Group_ga23d9d1ffa0a65a1a1dd482d570db1ba0}{elm\_win\_util\_standard\_add}}(\textcolor{stringliteral}{"{}map"{}},\ \textcolor{stringliteral}{"{}Map\ Overlay\ Example"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Win__Group_ga9a16a2f8c9fd5b6e9203ed9dcb53ea8b}{elm\_win\_autodel\_set}}(win,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ map\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga8f7fccd89ea054fe6e1202fe9a683091}{elm\_map\_add}}(win);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9379629ad8ad2860aa786d838a4a106a}{evas\_object\_size\_hint\_weight\_set}}(map,\ \mbox{\hyperlink{Evas__Common_8h_aa47c85083d3dae0111c21ec49359306a}{EVAS\_HINT\_EXPAND}},\ \mbox{\hyperlink{Evas__Common_8h_aa47c85083d3dae0111c21ec49359306a}{EVAS\_HINT\_EXPAND}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Win__Group_ga505d6bd217e5ee01e82b548ec35986eb}{elm\_win\_resize\_object\_add}}(win,\ map);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(map);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ box\ =\ \mbox{\hyperlink{group__Elm__Box__Group_ga49ec615c90bf8bead2158d5ffab2e445}{elm\_box\_add}}(win);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(box);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ bt\ =\ \mbox{\hyperlink{group__Elm__Button_gaf5caf46d74c4e122a18da323935d25e4}{elm\_button\_add}}(win);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(bt,\ \textcolor{stringliteral}{"{}+"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(box,\ bt);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(bt);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Smart__Object__Group_gac12dd6655f488cc47ce6cf00eb7d12b2}{evas\_object\_smart\_callback\_add}}(bt,\ \textcolor{stringliteral}{"{}clicked"{}},\ \_bt\_zoom\_in,\ map);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ bt\ =\ \mbox{\hyperlink{group__Elm__Button_gaf5caf46d74c4e122a18da323935d25e4}{elm\_button\_add}}(win);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(bt,\ \textcolor{stringliteral}{"{}-\/"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(box,\ bt);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(bt);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Smart__Object__Group_gac12dd6655f488cc47ce6cf00eb7d12b2}{evas\_object\_smart\_callback\_add}}(bt,\ \textcolor{stringliteral}{"{}clicked"{}},\ \_bt\_zoom\_out,\ map);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ bt\ =\ \mbox{\hyperlink{group__Elm__Button_gaf5caf46d74c4e122a18da323935d25e4}{elm\_button\_add}}(win);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(bt,\ \textcolor{stringliteral}{"{}X"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(box,\ bt);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(bt);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Smart__Object__Group_gac12dd6655f488cc47ce6cf00eb7d12b2}{evas\_object\_smart\_callback\_add}}(bt,\ \textcolor{stringliteral}{"{}clicked"{}},\ \_bt\_zoom\_fit,\ map);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ bt\ =\ \mbox{\hyperlink{group__Elm__Button_gaf5caf46d74c4e122a18da323935d25e4}{elm\_button\_add}}(win);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(bt,\ \textcolor{stringliteral}{"{}\#"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(box,\ bt);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(bt);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Smart__Object__Group_gac12dd6655f488cc47ce6cf00eb7d12b2}{evas\_object\_smart\_callback\_add}}(bt,\ \textcolor{stringliteral}{"{}clicked"{}},\ \_bt\_zoom\_fill,\ map);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Smart__Object__Group_gac12dd6655f488cc47ce6cf00eb7d12b2}{evas\_object\_smart\_callback\_add}}(map,\ \textcolor{stringliteral}{"{}overlay,clicked"{}},\ \_overlay\_cb,\ NULL);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ city\_clas\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga64e91bb1d1c8b5030bcb27127802ef52}{elm\_map\_overlay\_class\_add}}(map);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_gab6ec9926a0e290b8513733dea198d0c8}{elm\_map\_overlay\_displayed\_zoom\_min\_set}}(city\_clas,\ 3);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga1e43a278f16fcf4330c46d68f61fe294}{elm\_map\_overlay\_icon\_set}}(city\_clas,\ \_clas\_city\_icon\_get(map));}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ country\_clas\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga64e91bb1d1c8b5030bcb27127802ef52}{elm\_map\_overlay\_class\_add}}(map);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_gab6ec9926a0e290b8513733dea198d0c8}{elm\_map\_overlay\_displayed\_zoom\_min\_set}}(country\_clas,\ 1);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga1e43a278f16fcf4330c46d68f61fe294}{elm\_map\_overlay\_icon\_set}}(country\_clas,\ \_clas\_country\_icon\_get(map));}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ ovl\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga756210e880b6bf84b4e4b3abdc359c6a}{elm\_map\_overlay\_add}}(map,\ -\/43.2,\ -\/22.9);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga1e43a278f16fcf4330c46d68f61fe294}{elm\_map\_overlay\_icon\_set}}(ovl,\ \_city\_icon\_get(map));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga0067f7e03f714cee441291c27f00e2f5}{elm\_map\_overlay\_data\_set}}(ovl,\ \&data\_rio);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga777d9957f6678d76961f60d8c0a5e47a}{elm\_map\_overlay\_class\_append}}(city\_clas,\ ovl);}
\DoxyCodeLine{\ \ \ ovls\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\_list\_append}}(ovls,\ ovl);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ ovl\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga756210e880b6bf84b4e4b3abdc359c6a}{elm\_map\_overlay\_add}}(map,\ -\/46.63,\ -\/23.55);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga1e43a278f16fcf4330c46d68f61fe294}{elm\_map\_overlay\_icon\_set}}(ovl,\ \_city\_icon\_get(map));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga0067f7e03f714cee441291c27f00e2f5}{elm\_map\_overlay\_data\_set}}(ovl,\ \&data\_sampa);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga777d9957f6678d76961f60d8c0a5e47a}{elm\_map\_overlay\_class\_append}}(city\_clas,\ ovl);}
\DoxyCodeLine{\ \ \ ovls\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\_list\_append}}(ovls,\ ovl);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ ovl\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga756210e880b6bf84b4e4b3abdc359c6a}{elm\_map\_overlay\_add}}(map,\ -\/47.88,\ -\/15.78);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga1e43a278f16fcf4330c46d68f61fe294}{elm\_map\_overlay\_icon\_set}}(ovl,\ \_city\_icon\_get(map));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga0067f7e03f714cee441291c27f00e2f5}{elm\_map\_overlay\_data\_set}}(ovl,\ \&data\_brasilia);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga777d9957f6678d76961f60d8c0a5e47a}{elm\_map\_overlay\_class\_append}}(city\_clas,\ ovl);}
\DoxyCodeLine{\ \ \ ovls\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\_list\_append}}(ovls,\ ovl);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ ovl\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga756210e880b6bf84b4e4b3abdc359c6a}{elm\_map\_overlay\_add}}(map,\ -\/65.23,\ -\/35.1);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga1e43a278f16fcf4330c46d68f61fe294}{elm\_map\_overlay\_icon\_set}}(ovl,\ \_country\_icon\_get(map));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga0067f7e03f714cee441291c27f00e2f5}{elm\_map\_overlay\_data\_set}}(ovl,\ \&data\_argentina);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga777d9957f6678d76961f60d8c0a5e47a}{elm\_map\_overlay\_class\_append}}(country\_clas,\ ovl);}
\DoxyCodeLine{\ \ \ ovls\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\_list\_append}}(ovls,\ ovl);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ ovl\ =\ \mbox{\hyperlink{group__Elm__Map__Group_ga756210e880b6bf84b4e4b3abdc359c6a}{elm\_map\_overlay\_add}}(map,\ -\/71.3,\ -\/31.75);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga1e43a278f16fcf4330c46d68f61fe294}{elm\_map\_overlay\_icon\_set}}(ovl,\ \_country\_icon\_get(map));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga0067f7e03f714cee441291c27f00e2f5}{elm\_map\_overlay\_data\_set}}(ovl,\ \&data\_chile);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga777d9957f6678d76961f60d8c0a5e47a}{elm\_map\_overlay\_class\_append}}(country\_clas,\ ovl);}
\DoxyCodeLine{\ \ \ ovls\ =\ \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\_list\_append}}(ovls,\ ovl);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Map__Group_ga9836386af587e54f3b9eb9a4cffb085f}{elm\_map\_overlays\_show}}(ovls);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_gacad94595f83580c18908cb3b69b08d1a}{evas\_object\_resize}}(win,\ 512,\ 512);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(win);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Timer__Group_ga926423e464d7ef71105dd822d90e1187}{ecore\_timer\_add}}(1,\ \_nasty\_hack,\ win);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__General_gadf2553f83e6b0b9c7fbe054019a664a1}{elm\_run}}();}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ 0;}
\DoxyCodeLine{\}}
\DoxyCodeLine{\mbox{\hyperlink{group__Elm__General_ga50fe52d513f7e89c9c770afd76de7ad9}{ELM\_MAIN}}()}

\end{DoxyCodeInclude}
 