Skip to content

Instantly share code, notes, and snippets.

<Modal
onCancel
onSubmit
Fields
>
<Form
onSubmit
onCancel
Fields
>
@benheb
benheb / ssts
Created September 12, 2018 20:39
SST Tif
@benheb
benheb / ssts
Created September 12, 2018 20:39
SST Tif
@benheb
benheb / index.html
Last active October 2, 2017 16:55
Mapbox Map Pan Issue When Moving to Child Window
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.40.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.40.1/mapbox-gl.css' rel='stylesheet' />
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<style>
lng lat
-82.89986652481281 27.536925729001773
-82.86480517380954 27.524289756515678
-82.85053796046992 27.5553784944709
-82.8154761679179 27.542713287714122
-82.78043186505062 27.530030766026623
-82.80117357711845 27.573797176580293
-82.77592148264222 28.073760209793033
-82.79688318235867 28.117779247424348
-82.76611140365787 27.561102720075798
lng lat
-82.60355704161327 27.031376001935353
-82.58926912343583 27.06224446891114
-82.58320347163493 26.987798592705616
-82.54859650852893 26.975065733998537
-82.5689154491264 27.018648159509965
-82.55461014312215 27.04950472565216
-82.57496390457163 27.093119940274544
-82.54028752402962 27.080368282773566
-82.50806249377462 26.887942629837454
lng lat
-82.60355704 27.031376
-82.58926912 27.06224447
-82.58320347 26.98779859
-82.54859651 26.97506573
-82.56891545 27.01864816
-82.55461014 27.04950473
-82.5749639 27.09311994
-82.54028752 27.08036828
-82.50806249 26.88794263
lng lat
-82.60355704161327 27.031376001935353
-82.58926912343583 27.06224446891114
-82.58320347163493 26.987798592705616
-82.54859650852893 26.975065733998537
-82.5689154491264 27.018648159509965
-82.55461014312215 27.04950472565216
-82.57496390457163 27.093119940274544
-82.54028752402962 27.080368282773566
-82.50806249377462 26.887942629837454
// "lo1":0.0,
// "la1":90.0,
// "lo2":359.75003,
// "la2":-90.0,
// "dx":0.25,
// "dy":0.25
var features = [];
var lat = 90;
var lon = 0;
checkObject: function (object, docName, editId) {
console.log('object', object, 'docname', docName);
if ( docName === 'password' ) {
object = {
'password': [{
'user_id': object['password[0][user_id]'],
'newPassword': object['password[0][newPassword]'],
'ne2Password': object['password[0][ne2Password]']
}]
};