This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>Empty MapGL fly</title> | |
| <style> | |
| html, | |
| body, | |
| #container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>2GIS Map API</title> | |
| <meta name="description" content="Quckstart with 2GIS Map API"> | |
| <style> | |
| html, | |
| body, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| play (from, to) { | |
| if (from !== undefined) { | |
| this.player.setCurrentRawFrameValue(from) | |
| } | |
| if (to) { | |
| this.targetFrame = to | |
| } | |
| this.player.setDirection(from < to ? 1 : -1) | |
| this.player.play() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: gpl-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: gpl-3.0 | |
| height: 2000 | |
| border: no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getContrastColor (color) { | |
| const [RED, GREEN, BLUE] = [0, 1, 2] | |
| const fraction = (val, pos) => parseInt(val.slice(pos * 2, pos * 2 + 2), 16) | |
| const contrast = (fraction(color, RED) * 299 + fraction(color, GREEN) * 587 + fraction(color, BLUE) * 114) / 1000 | |
| if (contrast > 180) { | |
| return 'rgba(0, 0, 0, 0.8)' | |
| } else { | |
| return 'rgba(255, 255, 255, 0.8)' | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # script for stm32f1x family | |
| # | |
| # stm32 devices support both JTAG and SWD transports. | |
| # | |
| source [find target/swj-dp.tcl] | |
| source [find mem_helper.tcl] | |
| if { [info exists CHIPNAME] } { | |
| set _CHIPNAME $CHIPNAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID | |
| if {[using_jtag]} { | |
| jtag newtap $_CHIPNAME bs -irlen 5 | |
| } |
NewerOlder