Questions tagged [polymaps]

Polymaps is a free JavaScript library for making dynamic, interactive maps in modern web browsers.

Polymaps provides speedy display of multi-zoom datasets over maps, and supports a variety of visual presentations for tiled vector data, in addition to the usual cartography from OpenStreetMap, CloudMade, Bing, and other providers of image-based web maps.

Because Polymaps can load data at a full range of scales, it’s ideal for showing information from country level on down to states, cities, neighborhoods, and individual streets. Because Polymaps uses SVG (Scalable Vector Graphics) to display information, you can use familiar, comfortable CSS rules to define the design of your data. And because Polymaps uses the well known spherical mercator tile format for its imagery and its data, publishing information is a snap.

11 questions
8
votes
1 answer

No 'Access-Control-Allow-Origin' header is present on the requested resource Error when loading JSON file

My dataset is hosted on my dropbox account but not the Javascript files calling it. I am working with D3 and Polymaps to visualize the data, however I get an error saying - "XMLHttpRequest cannot load…
tijanicharles
  • 183
  • 3
  • 17
3
votes
1 answer

How to listen for a layer zoom event in Polymaps?

I'm using Polymaps.js library for making maps. It would be very useful to be able to observe zoom level changes on layers. I'm trying to keep a layer of points scaled by values in meters, so I need to recalculate the radii whenever the zoom level…
Dauren
  • 145
  • 1
  • 7
2
votes
1 answer

Polymaps svg map container defaults to 300px by 150px and cannot be set otherwise

I found a bug in Polymaps but haven't found the exact cause yet. Sometime recently, my local copy of Polymaps.js (2.5.1)) stopped displaying the map as the full size of the container, but instead only displayed a 300px x 150px view. I also see…
2
votes
2 answers

D3.js implements first stage of transition but not 2nd

Can anyone tell me why my circles transition to green but then do not transition to blue? I don't know if it's relevant but this is D3 on top of polymaps. marker.append("svg:circle") .attr("r", 4.5) .transition() …
0
votes
1 answer

JavaScript Polymaps library: Get mouse coordinates

I use the polymaps library to display a custom tiled map. Whenever the user clicks on it, I need to know the coordinates of that point. Not the lat/lon values that map.mouse(e) gives, but pixel coordinates. var po = org.polymaps; var div =…
2080
  • 1,223
  • 1
  • 14
  • 37
0
votes
1 answer

Drawing lines between points in d3.js

I'm trying to draw lines between plotted points using d3.js. Sample geojson (FeatureCollection of 3 LineString): https://www.dropbox.com/s/hgkdvbnrgmb6kak/test.geojson?dl=0 Full Existing…
iukie
  • 82
  • 10
0
votes
1 answer

Polymaps - Polygon with label inside from geoJSON

I have a map using Polymaps (http://polymaps.org/) and am able to draw polygons based on a geoJSON file. How can I add the name to the polygon. For example: Here is a bit of my geoJSON "properties": { "name": "NH", I want to draw the polygon…
user3062114
  • 129
  • 1
  • 3
  • 12
0
votes
1 answer

Polymaps and Angularjs

I'm trying to add a polymaps map inside an angularjs app. TypeError: Object [object Object] has no method 'setAttribute' at Object.a.container (http://localhost:8000/lib/polymaps.min.js:15:341) at new
collinglass
  • 800
  • 4
  • 11
  • 31
0
votes
0 answers

D3.js/Polymaps - Locking in size of circles and Creating a tooltip function

I am still pretty new to working with D3, Polymaps, and with data overall. I have been working on using d3 and polymaps to display location and size of solar power stations across the country. Each circle on the map corresponds to a specific…
tijanicharles
  • 183
  • 3
  • 17
0
votes
0 answers

Import kml file as a layer in Polymaps

I have a kml file I want to display using polymaps. The data is from NREL Solar Resource Map. As a kmz file it shows up quite nicely in google maps and earth respectively, however I am having trouble loading it into my polymaps/d3 environment. Does…
tijanicharles
  • 183
  • 3
  • 17
-1
votes
1 answer

What would be the best Web Mapping API for the following requirements?

I have a fairly simple, and what I would think to be common mapping web mapping project to complete. I'm struggling in my selection of a web mapping API. Thus far, I've not been able to one that meets the following requirements. Able to display…
Kenny Powers
  • 1,254
  • 2
  • 15
  • 25