You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "linshushi (via GitHub)" <gi...@apache.org> on 2025/09/21 09:14:01 UTC

[I] [Bug] MarkPoint in the Map does not follow the offset defined by specialAreas [echarts]

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

   ### Version
   
   6.0.0
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=map-usa&code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZykBKA8uwCoD6ACgEEuACQAEAalEByAPS4ocKDKhIkzGU1QyAqgGUBCAFZJUhKQBpRAMwCuhAMZx8p0aRtIoAKROFyogN7UoqKgkLCIEPi4jNh4RGRUQaKM9tDwSAgwjMT4SHCMMACyUAAOpFJ6Ahai7l4-loHBwQIANioA1lAAXAFJTaItjFZwPQC0AIwAzOPmfU1wqCU9AEwArLP9wehRcBA946tzAL4bTcJQ6FD4-D2Nm4PDY-PjAAyn_QtLossAHO9N21wux6h36JzmUj4NgKC1ErHw9lQUluc2CDxGolGAHYAGz_YKfFZ41GiQHA77HJJHRLBRZOFwAXl6H3wcEGKM2onyAA8MRV9KI-IsbG16YRRABRPL4YAKRhIVzLF7jZbkCwkpA2ABGPL5ABEFFBrDBUMBSeh0Ah7IxCJqMsRUAA3dWczValpEdo9KQQOBwJYyGQWy3W23uBhOmQlRbyuByQ3xxRqOAZX3AFou-5DPkwfDEX1SY7_BaoFpOL53D654hMGDe1mMYCZ_ooDB6xhtEA9N4kuAwKC21nOQh6mz9sXdhDLItzR25GxQFrFCsk9He6sF_EhIggl57vdb2XcnqTH77_dboisAdMDmc0SIlqoOuiADaJP6UgAxNNJjiAJyrM297fgALKsWKrFqoHAZy35YqBeC4OMsGbN-UBarg_6MP-qGfl-jAvFYkxWD8eFNN-VhUVYWpWORwSUYwhH_i89HSF-VjyIwOIoVu-FWKBOK4KBkxsd-uBYpMLzLFiYlflAqx7ssOKFveogALokuCnK6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WMzphRGDcgRDbaJyClRoM5r3HJdc8kdNEAATWfO0degEk7KRaRQg5z5dhF1gKWIgZT473zAejPZ2DoH5LuRAUQBp2ioBsYMgC_4cQn0-W0707BIjrMnvsA4pMUbkMpvXdg7Q2hoFlG3U8JNkamMhWirIDozCDNPDPSYnMQl8BtLaYRcMNYvP2DJKunNIGEryawNA0RRBdSQCI3A68MHSRTiE3QET7nKxNJfJlogQ5oyxGjMVEq_kAqBbKn4xjKWaI5TgrgtL5RqA4SCyRywRIhP1dyUWgzlIYJTi8D5rT67aEUMZG12y74hNygUYAySVG2ueF6_pORGVtx-BUn4OJQ66ugQAdRUJEEgCxSUbNZj3f8ScVQhNjbGUQ-UYAhvLoMipqwDaOpuTg2NuRESDhTfC0Qx8q6GOzSAU08QxG4gNjwp1eSoQwlQHCNZOLVFJ0CbVH6lkfqyiFkKIgGIJquhAKXUsPQABE9h-n2EGKu1pSAl0eRaLofAtMJY9kpg2YAugNoOQXfeR8z410cSsOeVdmNIX_TGpTL5ZtV2eDsGlGwO6HxuRgLgPSExg4IANjxF4eIG0_CnDPGePN1KQu_c1VdugByiD_QOIDiJnxgbfKMVRCBXhVMlpYB2UHVFSWWKhzGmk1LfU5CxpoTHao0GCKENIiBkzsBKGKUgdJhyJGpJQIAA
   
   ### Steps to Reproduce
   
   Open link
   
   ### Current Behavior
   
   When using echarts.registerMap with specialAreas set, we added Juneau (Alaska) and San Juan (Puerto Rico) to markPoint, but their display positions didn't follow the offset defined by specialAreas.
   
   ### Expected Behavior
   
   markPoint can follow the offset defined by specialAreas.
   
   ### Environment
   
   ```markdown
   - OS: Mac OS
   - Browser: Chrome
   - Framework: echarts 6.0.0
   ```
   
   ### Any additional comments?
   
   _No response_


-- 
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


Re: [I] [Bug] MarkPoint in the Map does not follow the offset defined by specialAreas [echarts]

Posted by "linshushi (via GitHub)" <gi...@apache.org>.
linshushi commented on issue #21281:
URL: https://github.com/apache/echarts/issues/21281#issuecomment-3317091079

   If automatic offsetting is not possible, is there a built-in method to calculate the corresponding position after offset and assign it to the coord of MarkPoint?


-- 
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

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


Re: [I] [Bug] MarkPoint in the Map does not follow the offset defined by specialAreas [echarts]

Posted by "linshushi (via GitHub)" <gi...@apache.org>.
linshushi commented on issue #21281:
URL: https://github.com/apache/echarts/issues/21281#issuecomment-3317359007

   I attempted to write a calculation method that retrieves the maximum and minimum longitude and latitude of Alaska from the GeoJSON, and then used specialAreas to compute it, but the position is still not accurate—there remains some offset. I'm uncertain about the calculation logic of specialAreas.


-- 
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

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


Re: [I] [Bug] MarkPoint in the Map does not follow the offset defined by specialAreas [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #21281:
URL: https://github.com/apache/echarts/issues/21281#issuecomment-3316254618

   _specialAreas_ are repositioned to make the map more compact. Such maps are presumably used on areas level only. Like making comparison between states based on certain criteria.
   The API **does not** mention markPoints or scatter points coordinates of being auto-adjusted for _specialAreas_. I don't think these maps were intended to be used that way.


-- 
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

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


Re: [I] [Bug] MarkPoint in the Map does not follow the offset defined by specialAreas [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #21281:
URL: https://github.com/apache/echarts/issues/21281#issuecomment-3317119374

   There is no built-in method I know of.  
   It isn't easy to write one either since the specialAreas are not only translated (repositioned), but also scaled through _width_. 
   Maybe not impossible, though.


-- 
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

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