I am using gulp.   I would like to having one or multiple JS files (say jQuery) to combine them in one, minify it, and write it to a distribution folder.   This is how I do it:   minifyJS(['/js/myModule.file1.js',           '/js/myModule....
I'm working on creating a map of Day Z (the game) with leaflet JS and want  to be able to plot items on the map using the in game coordinate system see  http://dayz.ollieb.net  In game the top left coordinate is 000 000, then 001, 001 where units...
I am needing to build a custom object from an array of objects in Typescript.  In the giving example below, How do I count how many times the salesman_1_name is in  the Array, Add the gross for each Salesman_1_name, and count if warranty is not null...
We have recently been transitioning our company mapping system from Google map, first to deCarta and then to OpenLayers. We have found that OpenLayers and deCarta are remarkably slower than Google Maps when many elements (several thousand) are added...
Can anyone suggest how I can access then animate the red polyline here using javascript:  http://gymloop.lukem.co.uk (login: User2/pass2, then select 'Challenges')  I want to animate the polyline from the first marker to the end of the red li...
I am attempting what I imagine to be a fairly common use-case with a leaflet multipolygon object.  I create the MultiPolygon using geojson:  var layer = L.GeoJSON(g, style_opts);   What I'd like is to put a simple text label in the center of each...
Input JSON:   {   "some_field":"some value" }   Type to be used for mapping:  export inteface SomeType {   someField:string; }   How can the mapping between JSON and TypeScript type be configured so that some_field -> someField?...
I have a snippet of code where I am trying to parse a longer string with special characters into an array with no spaces or special characters.  input: name: this is some stuff, name2: this is more stuff desired output: [name,this is some stuff,name2...
I have the following JSON object:    var test = {   data: [{       itemID: 0,       categories: [{         id: 0,         type: 'a',         name: 'world'       }, {         id: 1,         type: 'b',         name: 'plants&...
Consider the following two examples of mapping an object from JSON and assigning it into an observable:  The first example enables the user to change the input value, save the current value, and load the saved data anytime:    var personAsJson = "...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.