Skip to content

Instantly share code, notes, and snippets.

@deevroman
Last active April 18, 2025 22:39
Show Gist options
  • Select an option

  • Save deevroman/2870a8d86cb7a57c2b108d19c214b47d to your computer and use it in GitHub Desktop.

Select an option

Save deevroman/2870a8d86cb7a57c2b108d19c214b47d to your computer and use it in GitHub Desktop.
show emails via Overpass Ultra
---
style:
layers:
- type: circle
paint:
circle-radius: 3
circle-color: green
filter:
- any
- [ ==, [ slice, [ get, 'contact:email' ], -9 ], 'gmail.com' ]
- type: circle
paint:
circle-radius: 3
circle-color: red
filter:
- any
- [ ==, [ slice, [ get, 'contact:email' ], -9 ], 'yandex.ru' ]
- type: circle
paint:
circle-radius: 3
circle-color: yellow
filter:
- any
- [ ==, [ slice, [ get, 'contact:email' ], -7 ], 'mail.ru' ]
- type: symbol
icon-overlap: always
icon-size: 0.3
icon-image:
- coalesce
- - image
- - concat
- 'emoji:moneybag'
filter:
- all
- [ ==, [ slice, [ get, 'contact:email' ], -4 ], '.com' ]
- [ '!=', [ slice, [ get, 'contact:email' ], -9 ], 'gmail.com' ]
- type: circle
paint:
circle-radius: 3
circle-color: blue
filter:
- all
- [ ==, [ slice, [ get, 'contact:email' ], -3 ], '.ru' ]
- [ '!=', [ slice, [ get, 'contact:email' ], -7 ], 'mail.ru' ]
- [ '!=', [ slice, [ get, 'contact:email' ], -9 ], 'yandex.ru' ]
- type: symbol
text-field: [ get, 'contact:email' ]
text-size: 12
text-color: white
filter:
- all
- [ '!=', [ slice, [ get, 'contact:email' ], -4 ], '.com' ]
- [ '!=', [ slice, [ get, 'contact:email' ], -3 ], '.ru' ]
- [ '!=', [ slice, [ get, 'contact:email' ], -9 ], 'yandex.ru' ]
- [ '!=', [ slice, [ get, 'contact:email' ], -9 ], 'gmail.com' ]
- [ '!=', [ slice, [ get, 'contact:email' ], -7 ], 'mail.ru' ]
extends: https://styles.trailsta.sh/dark-matter.json
---
nwr["contact:email"]({{bbox}});
out center;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment