Displays layers from Nepali WMS services in WME
Detta är versioner av skriptet där koden uppdaterats. Visa alla versioner.
Update Nepali-WMS-layers.user.js
Commented out unused LMC layers
Migrate to wmeSDK and fix WME compatibility
Bump version and add unsafeWindow grant. Migrate map access to W.map.getOLMap() and layers to W.map.getLayers(); replace W.userscripts sidebar registration with await wmeSDK.Sidebar.registerScriptTab(); replace W.map events with wmeSDK.Events handlers. Initialize wmeSDK via unsafeWindow.getWmeSdk() on SDK_INITIALIZED and wire bootstrap to map-data-loaded. Adjust default geoJson shift distance to 1 and update updateMessage/changelog text. Various small UI/init tweaks to restore layer visibility with the latest WME.
updated url for preeti2unicode converter greasyfork link
Fixed issue with nepali font not didisplayed.
Shift ward buildings and boundaries together - Version 2026.02.06.05
Add ward boundary loading alongside buildings - Version 2026.02.06.04
Return early when metric_num is missing
Bump script version and add a guard for missing metric_num. If feature.attributes.metric_num is null/undefined the code now sets feature.attributes.custom_label to an empty string and returns early to avoid creating incomplete labels (previously rd_naeng could still be appended). Also updates the @version to 2026.02.06.03.
minor update
Add GeoJSON loader for LMC ward buildings
Add a new feature to load LMC ward building GeoJSON from geonep.com.np per ward (1-29). Introduces a UI section with ward selector, label color/size controls, Load/Clear buttons, and layer shift/reset controls. Implements GM_xmlhttpRequest fetching, GeoJSON parsing (with Z-coordinate stripping and per-feature fallback), creation of OL vector layers with styled labels, and management of loaded layers for cleanup and selection. Also updates metadata (@version, @match, @connect), changes the update message and changelog to reflect the new feature.
Add 2s delay to init
Add Health Facilities and Police Units layers from Geoportal
Added new WMS layers for Health Facilities and Police Units sourced from the National Geoportal. Updated metadata, UI toggles, feature info formatting, and allowed connections to the new Geoportal service.
bug fix
bug fix.
Zindex issue
ZIndex udpate for : Education Facilities (PRTMP), Health Facilities (PRTMP), Palika Centre (PRTMP), Ward Centre (PRTMP), Tourist Attraction, Customs Office Bridges (BSM), Bridges (PRTMP), and Lalitpur Metropolitan City (LMC) layers.
2025.07.27.05
Added Layers: Rivers, Education Facilities (PRTMP), Health Facilities (PRTMP), Palika Centre (PRTMP), Ward Centre (PRTMP), Tourist Attraction, Customs Office, National Highways 2023, Province Highways 2023, Province Roads 2023, Bridges (BSM), Bridges (PRTMP), and popup support for above layers and more.
Popup feature
version: 2025.07.24.01 - It now supports to display popup for highway with various information.
2025.06.23.01 Add new feature to process user input
Now supports diagonal (↖, ↗, ↙, ↘) layer shifting and shows an alert when the shift is reset.
version 2025.06.08.01
Now the WMS layer can be shifted by a specified distance in metres
Version: 2025.06.06.02
Version: 2025.06.06.02 - Added Bridge Management System bridge locations! - Loaded layers will be reloaded even after the page refresh.
Version: 2025.06.06.01
Version: 2025.06.06.01 - Added Bridge Management System bridge locations! - Loaded layers will be reloaded even after the page refresh.
2025.06.06.01
Added BMS bridges layers.
version: 2025.05.11.01 - Fixed Z-ordering
version bump