Posts

jQuery mobile swipping the contents

Snippets on jQuery mobile swipping the contents: //HTML <div data-role="content" id="content1"></div> <div data-role="content" id="content2"></div> <div data-role="content" id="content3"></div>     //JQ script $(document).one('pagebeforecreate',function(){ $("div[data-role='content']").bind('swipeleft', function(e){ var next=$(this).next("div[data-role='content']"); e.stopImmediatePropagation(); console.log(next); return false; });     $("div[data-role='content']").bind('swiperight', function(e){ var perv=$(this).prev("div[data-role='content']"); e.stopImmediatePropagation(); console.log(perv); return false; }); )}

How to display the MesoWest weather stations in Leaflet.js?

Snippet to display MesoWest weather stations in Leaflet . //Hold markers group var mesoMarkersGroup=new L.LayerGroup(); //Get weather information from Mesowest for the state VA $.getJSON('http://api.mesowest.net/stations?callback=?', { state:'va', latestobs:1, token:'demoToken' }, function (data) { //Loop through all the weather stations for(var i=0;i<data.STATION.length;i++) { try{ var stn = data.STATION[i]; var dat = stn.OBSERVATIONS; var stnInfo =stn.NAME.toUpperCase(); var elev=parseInt(stn.ELEVATION); stnInfo = "<b>Air Temp:&nbsp;</b>"+Math.round(dat.air_temp[1])+"&deg;F"+ "</br><b>Wind Speed:&nbsp;</b>"+Math.round(dat.wind_speed[1]* 1.150)+...

Where are my streets Chrome? Google Maps bug on Chrome or vice-versa

Image
I was checking the route for nearest police station from my office around 3 PM MT using the Chrome. The  Google Map's street looks so funny and floppy. All the street lines and highways lines were wiped out. The interstate has some brown points, if you zoom in them the point looks like half circle. Which has the bug Google Maps or Chrome? Click on images for bigger picture ! (Missing roads)                                                                  (Missing roads on zoom)                                                                          (More zoom in...) (Looks good in  the Firefox though)

The Manager's Guide to PostGIS - Paul Ramsey at FOOSS4G 2014 PDX

Interesting talk by Paul Ramsey about the decision process to adopt PostGIS vs other spatial databases at FOOSS4G 2014 Portland, OR. Ramsey, "what do managers need to know before they can get comfortable with the idea of making the move."

National Geodetic Survey plans to release future Geodetic Datums in 2022

Image
National Geodetic Survey (NGS)  developed videos to give you a better understanding of NGS' plans to release new datums in 2022. If you use mapping products or other geo-spatial tools, these videos should also help you find out how you can prepare for the new datums. . It’s a number of years off - but the links explain the changes and provide some initial knowledge that may help you prepare for their advent… This series of short videos, produced in collaboration between NOAA's National Geodetic Survey and The COMET Program, a part of UCAR's Community Programs, provides an introduction to geodetic datums for anyone who uses mapping products or other geo-spatial tools.  In the first video, "What are Geodetic Datums?" (4:36), explains the basic concepts behind geodetic datums, where they are used, and why it is important to know about and use the correct datums.

Leaflet TypeError: t is null

There are may be several reasons for TypeError:t is null, but I solved my problem by changing- L.marker(LATITUDE,LONGITUDE).bindPopup("Info").addTo(map); to L.marker(L.latLng(LATITUDE,LONGITUDE)).bindPopup("Info").addTo(map);

Job Title: GIS Parcel Maintenance & Election Systems Tech

Job Summary: Incumbent provides general and technical support services as necessary for maintenance and support of the Scott County Geographic Information Systems (GIS). Primary responsibilities include the following for GIS: updating digital cadastral database, editing existing parcels, mapping new subdivisions and surveys, providing map production and creation of reports, maintaining spatial datasets and databases. For election systems: maintaining electronic poll books; training election officials on use of electronic poll books; preparing various items of election data for production of ballots and programming of election tabulators and voter assistance terminals.