0
votes
1answer
24 views

Access the values stored in an array created by .map()?

Writing a resume creator in, in a previous question I was using a for loop to dynamically generate an array from form inputs. Based on another users advice I instead used the .map() method to store ...
0
votes
1answer
30 views

Maphilight plugin jquery invalid pointer issue with dynamically loaded image

A bit about what I am trying to do: At window.onload this page will AJAX call another php page and get a base64 encoded image as a response. This works fine. Once the image is returned via AJAX it is ...
1
vote
0answers
79 views

html / jquery 2d tile based map: javascript too slow, alternatives?

I am working on a browser-based web game with a very large 2d, tile-based map. Unlike games like Tribal Wars, the terrain is not generated randomly from a seed or one large image file. What I ...
0
votes
1answer
46 views

Array resorting

I have a list items from which some of them are missing, like for example, here 3rd in order is missing: <ol> <li data-id='0'>Apple</li> <li ...
0
votes
1answer
80 views

Jquery - MapTiles loading very slow with lazy load

And my next problem. I made a little Map, showing some points. I thought it is a good idea to split the map into 200x200px tiles for easy loading. But with every zoom level the map dragging becomes ...
0
votes
3answers
36 views

Mapping id values with event values in jQuery/Javascript

I'm new to javascript/jQuery and I'm trying to find the smartest way to trigger an event based on whether a id is active or not : <ul class="tabs"> <li id="1" class="active"><a ...
1
vote
1answer
128 views

Leaflet fixed map double click feature not working properly in Firefox after scrolling

The problem happens in Firefox and IE, Chrome and Safari work great. I have a map with Leaflet in fixed position and when I double click to zoom on the map and I am scrolled up it zooms without ...
0
votes
3answers
35 views

Using map to get all but last in data array

The following iterates over certain <th> elements and creates an array of the text, with each array entry surrounded by <span> tags. But, I don't ever need the content of the last ...
1
vote
0answers
54 views

How to get my markers to update on a Leaflet map?

I've created a map that grabs data from a JSON-source and puts a marker for all drivers inside that JSON-data. Problem is, I want these drivers position to update all the time. To do so, I've created ...
1
vote
1answer
38 views

How to update and generate markers on a Leaflet map?

I've just discovered Leaflet and will be using that instead of Google Maps. I have an API where I want map markers to be generated from and updated (or else, I'll have multiple markers). I have a ...
0
votes
3answers
181 views

iterate through a map in javascript

I have a structure like this: var myMap = { partnr1: ['modelA', 'modelB', 'modelC'], partnr2: ['modelA', 'modelB', 'modelC'] }; I am going to iterate through each of the elements (partnr) ...
0
votes
1answer
63 views

embed GPS coordinates into SVG

I have a custom map I've created in SVG. It's to scale. It was based off an SVG map where I just removed a lot of the info and changed it to focus only on what I want to show. I now want to add ...
0
votes
1answer
38 views

How can you make a leaflet map re-sizable?

I have a leaflet map embedded in my page, but I want to add a control to allow the div with the leaflet map to be resized by the user. I've tried plugins like jquery.ba-resize, twinhelix and one ...
0
votes
2answers
146 views

Getting JSON for OSRM routing

I successfully implemented a routing system into my website using the cloudmade API. I also want to do the same with the OSRM routing system (https://github.com/DennisOSRM/Project-OSRM) but I'm having ...
0
votes
3answers
54 views

run javascript function before jquery function

I'm getting the users location on a mobile device and sending it to a database, I then run a jquery function to plot pointers on a map. However the map always seems to load before i update the users ...

1 2 3 4 5 14
15 30 50 per page