Skip to content
Vue Neshan MapsDeveloper documentation

Lines, polygons & circles

Render delivery areas, connections and meter-radius circles.

1 min readVue 3 / Nuxt 4Live example included
On this pageShapes
Interactive exampleMapLibre

Run on a real Neshan map

Bring a domain-allowed web key. Sample geometry; real basemap.

Allow sajadjanat.github.io. Your key stays in memory and is excluded from copied code.

Shapes#

Pass arrays to polylines, polygons and circles. All positions are latitude first, and circle radius is in meters. Replace the relevant data to redraw a shape. Use polygon ring arrays for holes. Shapes are independent of geojson, so they can coexist.

Shape MapLibre options supported by the wrapper
Line color, weight, opacity, dashArray
Polygon / circle color, weight, fill, fillColor, fillOpacity

Leaflet accepts its native shape options. MapLibre translates only the documented subset; Leaflet callbacks/plugins do not carry over. MapLibre circles are geodesic polygon approximations. The dashed connection in the example is supplied geometry, not a route computed by Neshan.

Independent community library. Map services and attribution belong to Neshan and OpenStreetMap. · Sajad Janat · MIT