New answers tagged web-mapping
1
So I am going to assume that you drawing the polygon in a graphics layer. You just need to grab the polygon (graphic) from the graphics layer. Then you can do this:
graphic.geometry.toJson()
This will give you the JSON representation of the polygon. Then you can just pass that as a parameter to your web service. You can even call toJson() method of ...
0
I found a solution using Douglous Peuker algorithm which can be used to reduce the number of vertices with a tolerance factor and generate a simple linear map while maintaining network topology. PostGIS ST_Simplify function has been implemented on top of this algorithm. There 's also an OpenLayers implementation of this.
2
You need to look at the documentation for the GeoProcessor.
Basically, you will create a new geoprocessor object like this:
gp = new esri.tasks.Geoprocessor("http://YourServer/ArcGIS/rest/services/foo/GPServer/bar");
Then you will need to create a parameter object, with the two required parameters. for this, I'm assuming you will need to take the user's ...
0
The main issue is that the FeatureManager is not bound to a layer.
Either specify the layer or autoSetLayer property in your FeatureManager, like:
/*
* @require plugins/FeatureManager.js
* @require plugins/QueryForm.js
*/
{
ptype: "gxp_featuremanager",
id: "states_manager",
maxFeatures: 20,
layer: {
source: "local",
name: "usa:states"
...
2
I am going to suggest you do something like an API key like Google or CloudMade. That way you can only allow keys to make requests.
Here are a few items I googled up on the topic.
https://github.com/scoursen/django-apikey & http://www.stevecoursen.com/665/django-apikey-key-based-authorization-for-restful-django-applications/
CloudMade ...
0
You can use the free Esri service on any map, but you can't do batch geocoding (requires a subscription). If you are not using the 102100 standard web mapping projection for your custom tiles, you can ask for a different projection from the service.
Documentation
...
2
There isn't really going to be a great solution.
If you put your site behind SSL and made your data stuff that your script downloads through AJAX calls, then at least you don't have your data right there in the page or script source nor is it available to packet sniffers but someone could run your page in a script debugger such as Chrome offers and they ...
2
Arcgis-online supports raster when they rendered to tiles:
You will need arcgis-desktop 10.1 for this.
See the help file how to do this:
http://resources.arcgis.com/en/help/main/10.1/#/Hosted_tiled_map_services/01w10000003r000000/
Mapbox also offers a service that can host raster-tileservers.
they offer a free tool called tilemill to generate these tiles.
...
1
ArcGIS doesn't support raster, TileMill/MapBox has GeoTIFF support, it involves a bit of work, but nothing too testing. MangoMap is scheduled to release raster support next month. In the mean time the work around is to host your own GeoServer and serve up a raster layer as a WMS and then consume that WMS layer from one of the cloud based offerings.
3
No need for expensive proprietary solutions, this is called the Traveling Sales Person (TSP) problem and luckily for you this PostGIS extension PG Routing already has this cracked.
Better yet it's free and opensource! Just vanilla web app stuff to write some back end code to that you can run those queries over HTTP.
Happy mapping!
3
You can publish rasters as Image Services using ArcGIS.
Note the key concepts for image services. Most importantly:
Many advanced abilities include querying, on-the-fly processing, viewing footprints, previewing each raster, downloading, and adding. Each of these are controlled through the image service parameter settings and the imaging capability's ...
1
Maybe there's someone on the web who has ArcGIS Server for Network Analyst and has published a closest facilities layer, similar to this sample service. You could adapt this javascript code, to perform the task.
Often these sorts of analyses use choice models that take the "n nearest facilities" as an input, such as multinomial logit models. For example ...
1
You can use our RW Net 4 library, either calling it from .NET or use Python as a scripting language. Prices start from €1000 for a solution covering the needs you specify. You will need a street network covering your area of interest, for some areas good and free sources exist.
0
I've always had issues with map height in bootstrap as the margin on the top can be different when the width of the map changes to get 100% height (but with a nav bar on the top) I end up using
var mapmargin = 50;
$('#map').css("height", ($(window).height() - mapmargin));
$(window).on("resize", resize);
resize();
function resize(){
...
1
You can only upload vector data to ArcGIS Online. You can host your your own raster tiles on ArcGIS Server if you like and add them. But that is way more complicated than uploading vector files.
0
Just add a height:100% to the html and body tags so they have a defined height and can be used as reference and it should work.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Height sample</title>
<style type="text/css">
html, body {
height:100%
}
#map {
margin: ...
3
The problem is #map is a child of body and you can only specify percentage heights for child elements if it's parent has a explicitly defined height.
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
height: 480px;
}
#map {
height: 75%;
}
</style>
This would create ...
0
I adapted the code to work with the cql filter:
$("#camping").change(function () {
DNPA_camping.setVisibility(true);
if ($(this).val() === "All") {
filterval = "use like'%%'";
} else {
filterval = "use like '%" + $(this).val() + "%'";
}
DNPA_camping.params.CQL_FILTER = filterval;
DNPA_camping.redraw();
});
3
I think you found the right tool for creating your data. QGIS is mainly for creating the information not necessarily for sharing the information.
Luckily what you are wanting is actually kind of trivial in QGIS and with something like Google Maps but you need some background knowledge. If you know nothing about GIS it might seem daunting at first but ...
0
Yes, you can open pictures in QGIS using "Layer options" -> "Actions" then read picture link from database and execute your program. WWW is little bit different case, but you can "easily" share same postgis database and images between qgis and some geoserver + openlayers code
2
more of a jQuery question, but try:
$("#reset").on("click", function(event) {
DNPA_camping.setVisibility(true);
DNPA_camping.redraw();
});
edit: or to drop the "reset"-button and have the dropdown make the map show all when selecting all:
$("#camping").change(function () {
DNPA_camping.setVisibility(true);
if ($(this).val() === "All") {
...
0
Perhaps this idea can help you out here, using GMT (http://gmt.soest.hawaii.edu/) you can read the nsidc binaries based on this and then plot them nicely as PNG (with ps2raster it's possible also to have transparent PNGs) in the projection you want. With GMT you can also animate the images you want like here.
Hope this helps,
1
The development version of OpenLayers has support for Web Processing Service (WPS).
See this example.
You can use GeoServer as a WPS server. Use the JTS buffer operation to buffer your geometry.
1
There is a plugin for Sketchup called the Sketcup Web Exporter that will export your building as a series of jpegs of each angle as well as a small piece of JS code that brings them all together. It's not a true 3D solution but allows users to rotate around the model at a fixed elevation and doesn't require any plugin.
...
0
I turned out to be a simple change of font that fixed my problem.
2
The concept of scale in web mapping has no real meaning, as blah238 writes it's meant to imitate scale on paper maps, ie.that you can measure your map on-screen with a ruler and then convert to "real life distance". ArcMap assumes 96 DPI, OpenLayers assumes 72 DPI (by default), so on screens with these resolutions you might be in the ballpark when using a ...
4
ArcMap assumes a logical DPI of 96 for the purposes of calculating and displaying scale, so you are right in that holding a ruler up to your screen and attempting to perform measurements based on that scale would in all likelihood be incorrect, unless your monitor is actually 96 DPI (physical DPI) and you are using its native resolution.
I am not sure if ...
1
Stick to standard web fonts. I've had luck with using Verdana black with white halos, if you want the halos. But it appears you do not.
0
Be sure to be using the standard label engine and not Maplex. Maplex doesn't work well with ArcGIS services.
2
Before deciding between Leaflet and OpenLayers, it might be worth having a look at the upcoming version which promises a cleaned up API and better documentation:
OpenLayers 3 is a comprehensive rewrite of the library, targeting the latest in HTML5 and CSS3 features. The library will continue to have broad support for projections, standard protocols, and ...
2
A nice light alternative to OpenLayers, which is the big popular javascript library for web-mapping, is Leaflet.
I use Leaflet with GeoServer to make some nice maps, including some interactivity. It does require custom coding, but not much, and it is much easier to use than OpenLayers.
9
For the features that your suggesting I would look at what is the most straight forward and easy to install stack that meets your needs. The software saying "You can have quick, powerful or cheap. Choose two." definitely applies here.
If you're only planning on doing simple queries such as identifying features then the power of PostGIS is likely overkill. ...
Top 50 recent answers are included



