function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kavya mareedukavya mareedu 

I want someone to write a component for this JavaScript

({ jsLoaded: function(component, event, helper) { var map = L.map('map', {zoomControl: false}) .setView([51.5, -0.09], 13); L.tileLayer( 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}', { attribution: 'Tiles © Esri' }).addTo(map); component.set("v.map", map);var circle = L.circle([51.508, -0.11], {color: 'red',fillColor: '#f03',fillOpacity: 0.5,radius: 500}).addTo(map);var polygon = L.polygon([[51.509, -0.08],[51.503, -0.06],[51.51, -0.047]]).addTo(map);}})[[code]]czowOlwiXCI7e1smKiZdfQ==[[/code]]
kavya mareedukavya mareedu
({
jsLoaded: function(component, event, helper){ 
var map = L.map('map', {zoomControl: false})
.setView([51.5, -0.09], 13);
L.tileLayer(
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}',
{
attribution: 'Tiles © Esri'
}).addTo(map); \
component.set("v.map", map);var circle = L.circle([51.508, -0.11], {color: 'red',fillColor: '#f03',fillOpacity: 0.5,radius: 500}).addTo(map);var polygon = L.polygon([[51.509, -0.08],[51.503, -0.06],[51.51, -0.047]]).addTo(map);}})[[code]]czowOlwiXCI7e1smKiZdfQ==[[/code]]