You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/07/18 02:24:39 UTC

[GitHub] [echarts] shahzadhassan10 opened a new issue, #17389: [Feature] Ability to do zoom in and out on a geo map

shahzadhassan10 opened a new issue, #17389:
URL: https://github.com/apache/echarts/issues/17389

   ### What problem does this feature solve?
   
   using plus and minus graphic elements like in google maps
   
   ### What does the proposed API look like?
   
   geo: {
           show: true,
           map: mapName,
           silent: true,
           roam: true,
           layoutCenter: ["50%", "50%"],
           layoutSize: "100%",
           zlevel: 1,
         },
         graphic: {
           elements: [
             {
               type: "group",
               right: 10,
               bottom: 30,
               children: [
                 {
                   id: "zoomInIcon",
                   type: "text",
                   bottom: 35,
   
                   style: {
                     text: "add_box",
                     font: `2.5em "Material Icons"`,
                     textAlign: "right",
                     fill: "#9d9da3",
                     cursor: "pointer",
                     color: "#fff",
                     areaColor: "#fff",
                     shadowOffsetX: 0,
                     shadowOffsetY: 0,
                     shadowBlur: 20,
                     borderWidth: 0,
                     shadowColor: "rgba(0, 0, 0, 0.5)",
                   } as any,
                   onclick: () => this.zoomOut(),
                   zlevel: 4,
                 },
                 {
                   id: "zoomOutIcon",
                   type: "text",
                   bottom: 8,
   
                   style: {
                     text: "indeterminate_check_box",
                     font: `2.5em "Material Icons"`,
                     textAlign: "right",
                     fill: "#9d9da3",
                     cursor: "pointer",
                     color: "#fff",
                     areaColor: "#fff",
                     shadowOffsetX: 0,
                     shadowOffsetY: 0,
                     shadowBlur: 20,
                     borderWidth: 0,
                     shadowColor: "rgba(0, 0, 0, 0.5)",
                   } as any,
                   onclick: () => this.zoomIn(),
                   zlevel: 4,
                 },
               ],
             },
           ],
         },
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org