Found 1-0

Are you an agent?

Learn how our low rates, reliability, and expertise can help you and your clients.
Refer a client
,

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: views/block-map-js.php

Line Number: 6

], zoom: 11.15 }); map.on('load', () => { // Add an image to use as a custom marker map.loadImage( 'https://docs.mapbox.com/mapbox-gl-js/assets/custom_marker.png', (error, image) => { if (error) throw error; map.addImage('custom-marker', image); // Add a GeoJSON source with 2 points map.addSource('points', { 'type': 'geojson', 'data': { 'type': 'FeatureCollection', 'features': [ ] } }); // Add a symbol layer map.addLayer({ 'id': 'points', 'type': 'symbol', 'source': 'points', 'layout': { 'icon-image': 'custom-marker', // get the title name from the source's "title" property 'text-field': ['get', 'title'], 'text-font': [ 'Open Sans Semibold', 'Arial Unicode MS Bold' ], 'text-offset': [0, 1.25], 'text-anchor': 'top' } }); } ); });