How to draw a fan with OpenLayers

Updated on technology 2024-03-15
3 answers
  1. Anonymous users2024-02-06

    ol3:

    Create a fan. param [x,y] center sector center point.

    Param Number randius Sector radius The coordinate system unit corresponding to the center point.

    param number sangle angle between the start edge of the sector and the positive direction of the x-axis

    param number angleĀ° (positive counterclockwise).

    returns

    constructor

    function (center, randius, sangle, angle) {

    sangle = (360 - sangle + 90) %360;

    var lines =

    var s = false;

    var sp = center;

    var ep = null;

    for (var i = 0; i <= angle; i += {

    var x = center[0] +randius * i));

    var y = center[1] +randius * i));

    if (s) {

    sp = [x, y];

    s = !s;

    else {

    ep = [x, y];

    ep]);sp = ep;

    return new ;

    var degreetoradian = function (degree) {

    return * degree / 180;

  2. Anonymous users2024-02-05

    Landlord, I use C language.

    C language drawing mouse like steps.

    Register off, mouse position.

    2.Change the position of the mouse to draw the mouse.

    3.Relay processing.

    4.Repeat the polygon step.

    Draw mouse pose, 3 kinds of the same (I know).

    Draw the line directly (references).

    2.Storage and preservation (references).

    I used to practice my hands, but I didn't optimize, and I felt the card).

    The face draw mouse module specializes in drawing the mouse, which belongs to the storage and preservation) 3.Mask.

    Write in graphic mode.

    Hope helps.

  3. Anonymous users2024-02-04

    Hello, glad to answer for you.

    The page initiates an asynchronous request; The server-side program processes the request result into a geojson string and sends it back to the request page. The request page uses the parsed geojson string provided by OpenLayers to display the results on the map.

    Initial map. function init()

    The geojson string is obtained asynchronously through dwr and handed over for processing.

    function locorie()

    ;} Update data every 10 seconds.

    function startorie()

    Questioner commentsThank you!

Related questions
3 answers2024-03-15

Thank you for the translation.

When Dongpo went to Qiantang to take up his job, someone complained that there was a person who owed 20,000 silk money for the purchase of silk and did not pay it back, Su Dongpo summoned the person to inquire, he said: "My family makes a living by making fans, my father has just died, and since this spring, it has rained continuously and the weather is cold, and the fans that are made cannot be sold, and he does not deliberately owe him money." Dongpo stared at him for a long time and said: >>>More

8 answers2024-03-15

Cut, the upstairs didn't sleep!

The earth is round. >>>More

11 answers2024-03-15

Introduction to how to draw. a) How to draw a rod.

The bamboo pole is tall and tough, and it is not suitable to use a soft pen, which is easy to express if it is hard or both. Choose the size of the pen according to the thickness of the rod, with large strokes thick and dry, and small strokes with thin branches and branches. What are the painting methods of Chinese painting bamboo? >>>More

7 answers2024-03-15

Don't try it, the squid is so hot that it's water, and you can't wipe it off in the electric oven, and it's still dangerous.

5 answers2024-03-15

If you want to learn systematically, you can consider signing up for a live online class, and recommend CGWANG's online class. The teacher speaks carefully, you can watch it back after the class, and there are also the same type of recorded classes that you can learn for free (give away lifelong VIP). >>>More