Search Header Logo

Modules 1.1-1.2 Questions

Authored by Courtney Yatteau

Computers

12th Grade

Used 2+ times

Modules 1.1-1.2 Questions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Leaflet method initializes a map in a given HTML element?

L.map('map')

L.initMap()

L.createMap('map')

map.new()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you set a Leaflet map view to a specific location and zoom level?

map.setView([lat, lng], zoom)

map.setLocation(lat, lng, zoom)

map.view(lat, lng, zoom)

map.zoom(lat, lng)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add a tile layer to a Leaflet map?

L.tileLayer(...).addTo(map)

map.addTile(...)

L.mapTile(...)

map.loadTiles(...)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which URL pattern is correct for most Leaflet tile layers?

'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'

'https://osm.org/{x}/{y}/{z}.jpg'

'https://tiles.org/zxy/{z}/{x}/{y}'

'https://maps.com/tiles/{zoom}/{lat}/{lng}'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function creates a map marker at a specified location?

L.marker([lat, lng])

L.point([lat, lng])

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you bind a popup to a marker?

marker.bindPopup('text')

marker.addPopup('text')

popup.attachTo(marker)

marker.setPopup('text')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method shows a tooltip when hovering over a marker?

bindTooltip(...)

bindHover(...)

attachTooltip(...)

addTooltip(...)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?