Tag Info

New answers tagged

3

Have a look at WMS Split for Leaflet.


1

You can use Raphael plugin for Leaflet. This enables you to use SVG animations from Raphael framework. http://dynmeth.github.io/RaphaelLayer/ There is an example on using animated lines from point to point using Bezier lines on link above. You can look in the plugin code and make tweaks to functionality provided or add your own by using Raphael features. ...


0

Well, one option I've come across (to answer my own question) is a plugin created by vogdb. This plugin contains methods getActiveBaseLayer() and getActiveOverlayLayers() which do the trick. A quick snippet of code from the github site demonstrates how vogdb's activeLayers control can be used in place of the standard leaflet layers control... var control ...


0

To load OSM data through Overpass API in Leaflet layer using this plugin: http://labs.easyblog.it/maps/leaflet-layerjson/examples/overpass.html


1

you can do it using this SQL code SELECT row_to_json(fc) FROM ( SELECT 'FeatureCollection' As type, array_to_json(array_agg(f)) As features FROM (SELECT 'Feature' As type, ST_AsGeoJSON(lg.geom)::json As geometry, ( select row_to_json(t) from (select FIELD_1, FIELD_2, FIELD_N) t ) As properties FROM MY_TABLE_OR_VIEW As lg ) ...


1

To display the map, it is necessary to declare the projection of the data, and the projection you want to be displayed. The geojson data seems to be in EPSG:4326, while the OSM map you load is in EPSG:900913. My own osm map starts with map = new OpenLayers.Map ("map", { controls:[ new OpenLayers.Control.Zoomlevel(), ...


0

You need to convert the coordinates in your JSON object to also be 'unprojected', just like your base image. First loop through the points object and change the coordinates in each point from [x,y] to whatever is returned by map.unproject([x,y]). Then add the JSON object to the map.


0

You can embed html and run some javascript in PDF, but it appears that there is not enough support for Leaflet to run - there's no XmlHttpRequest which you would need to fetch your data. It might be possible with some hacking, since Adobe Javascript has its own net library, but it's not going to be easy.


0

Never mind, I think I got it. Had to over-write the remote style sheet with this: .leaflet-control-layers { width: 150px !important; } .leaflet-control-layers-expanded { width: 150px !important; }


2

It really does depend on what you want the use to do with the web application. I asked a similar question here - Create interactive map with no server 1) If you want to just visually show the data then you could either load the data into a database (postgis, oracle etc) and put a geographic server (geoserver, mapserver, arcgis server) in front of that and ...


2

It's obvious here that you can't expect to get 200 MB from a server to a client in a reasonable amount of time. Your only options are to drastically simplify it (probably will resulting unusable information) or tiling it (either vector or raster tiling should work). What you do depends on what you know and what you want to achieve. Here's what I suggest, ...


0

Should I include tiles outside of the bounding box even though they will not be used? You could use a grayscale basemap outside of the area of interest, to reinforce visually that your application only contains data within a specified area, while still allowing people to navigate anywhere.


2

You need to keep track of your markers in an array. var markerArray = []; Every time you add a marker you push it to the array. var marker = new L.marker(...); markerArray.push(marker); Then if you wanted to apply some event listener to each of the markers you just iterate over that list. for(var i=0;i<markerArray.length;i++){ ...


0

As @BradHards already pointed out: you are messing several things together. If you want to display boundingboxes using leaflet, you can use javascript coding on the client side. Angular or node.js does not have anything in common with that. If you are unable to code on client side for whatsoever reason, you need to add some attribute to the features, ...


0

Sure, if you are using a server-side programming language like PHP (or Java or .Net) you could have a page which make the requests to CartoDB and return the results to the user. So, the user would request the page from your server. The page on your server would request the data from CartoDB. CartoDB would send it to your server and your server would send ...


0

I've created a small plugin for Leaflet: Leaflet.MultiOptionsPolyline. Here is a screenshot from the demo page: Currently it's lacking documentation, but the demo page links to the source code which should be quite self-explanatory. Your feedback is welcome (create an issue on GitHub or comment this answer if you don't have a GitHub account).


2

title description marker-size marker-symbol marker-color stroke stroke-opacity stroke-width fill fill-opacity Mapbox.js uses the simplestyle spec. That's where you can find out more about defaults and accepted values. Adding a dashed line is a little more complicated, see dashArray in the leaflet documentation which will work with mapbox.js.


0

You can use for example site44.com. They host Dropbox folders, but offer also a password protection for the website. I like that you can map your domain to the service. The sync from Dropbox to the server is sometimes a bit slow, but overall it works nicely.



Top 50 recent answers are included