Showing posts with label long. Show all posts
Showing posts with label long. Show all posts

January 06, 2020

My first Geo Location program using Leaflet JS

Hi folks,

Today I am going to explain writing an geo location HTML page with Leaflet JS.

You can find my program in my GIST GitHub List

https://gist.github.com/psrdotcom/85c56bc2ffaadb254e63bde2b3b162d5

Procedure


  • Make the empty HTML page with HTML, HEAD, BODY tags
  • Place the CSS link first in HEAD tag
    • "https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
  • After CSS, paste the Leaflet JS file reference
    • "https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
  • In BODY, create a DIV tag specifying the ID attribute and height and width style attributes
    • id="mapid" style="width: 600px; height: 400px;"
  • Get lat (Latitude) and long (Longitude) of your own choice of location.
  • Take latlong reference from https://www.mapcoordinates.net/en
  • Use map setView to set the location with latlong and zoom level
    • var mymap = L.map('mapid').setView([17.496380,78.393175], 15);
  • Make a marker with popup using marker and bindPopup functions
    • var marker = L.marker([17.496380,78.393175]).addTo(mymap);
    • marker.bindPopup("Hello !! This is JNTU, Hyderabad, India campus.").openPopup();
  • Open your HTML page in any compatible browser
  • You should be able to view your map with specified location and control the map with zoom out and zoom in capabilities.
Please send your feedback and comments to psrdotcom@gmail.com

December 30, 2016

Windows file name too long to delete move copy rename due to destination path too long

Hi friends,

Problem

When i am clearing my old windows folder from the OS installed drive, I had an issue of deleting the files and folder because the path name is too long.

The error message is

"Destination Path Too Long.

The file name(s) would be too long for the destination folder. You can shorten file name and try again, or try a location that has a shorter path."

Background

Windows OS will allow the file path to be max 255 characters. If any file or folder path is beyond 255 characters, you will not be able to perform any file actions like delete / move / copy / rename.

Solution


  1. Navigate to the folder in the windows explorer
  2. Type the following command in the address bar and hit enter key
    • subst j:
  3. Open a new windows explorer window
  4. Now you will be able to see new drive with letter J:
  5. You will be able to delete the files/folders with in the drive
  6. To delete the other files, navigate to the parent folder and delete one after one or multiple folders path at a time.


Please send your feedback or suggestions to psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com