Tag Info

Hot answers tagged

9

I would recommend looking into TileMill which is made by the same people that were workign on Maps On A Stick. TileMill was either part of Maps On A Stick, or is what Maps On A Stick became - something like that. I forget the connection. Anyway... TileMill will let you load geographic data, style it how you like and then create a set of PNG map tiles for a ...


8

You might be interested in the projects Maps on a Stick and MapBox iPad. (disclaimer: designed the former, involved in the latter. however, both are BSD-licensed, and the underlying tile format, termed ".mbtiles", is SQL-based.) Maps on a Stick is an offline OpenLayers map. The main reasoning for going with a portable database/server instead of client side ...


7

OpenLayers can be used for many static maps; I have in the past created up to 200 maps on a single page without a huge performance penalty, so long as they are simple maps. Many sites have used small, static OpenLayers maps to create simple maps, because then they can use the same set of image tiles that they use for many other maps on their sites. When ...


7

I would agree with Moyles that the samples are just samples and dojo boileplate is a great resource however at current snovers boilerplate isn't a viable solution. You have two different versions of dojo going on there. The current js api still uses the classic require syntax of dojo 1.6.1 and does not support AMD. I'm sure that a newer js api will be built ...


5

Your MAP file seems to indicate that your LAYER is coming from another WFS server using CONNECTIONTYPE WFS - are you sure you mean to do this? If you just want to enable WFS for a layer using data on your server then just define a standard LAYER. LAYER NAME 'MLSOA' TYPE POLYGON DATA "C:/path/shapefile.shp" CLASS STYLE COLOR ...


5

(1) and (2) are possible with eVis plugin (Documentation). Ad (3): You should be able to use Field Calculator to add the path to the filenames you already in attribute table. Field calculator is described here: http://www.qgis.org/wiki/Calculating_field_values. You can use + operator to concatenate strings.


5

Stick to a single where parameter in your query string. Here's an example of a where clause hitting multiple fields: ...


4

HTML can be used to create simple static maps without any server side stuff like a WMS or client-side libraries like OpenLayers. Use a raster image of the map area in combination with the HMTL's tags map and area, the last one with the attribute shape set to 'poly'. You would have to give border's map coords relative to the top, left corner of the map ...


4

you can get the coordinates of your shape as below code: vectorLayer.features[i].geometry.getBounds(); and also you can get covered area, centroid of your shape, vertices of ypur shape, length or geodesic area. if you want specific feature bounds, you can write order of your feature [i] place like this: vectorLayer.features[3].geometry.getBounds(); ...


4

That's the markup generated by dojo for a specific kind of widget (dijit). You wouldn't actually build that yourself– it's the result of creating a dijit (either declaratively or programmatically). There are a number of button-style dijits available: http://dojotoolkit.org/reference-guide/dijit/form/Button.html ...


4

take a look at: http://s3.amazonaws.com/shapefile-js/simple.html and http://badassjs.com/post/845509816/rendering-binary-shapefiles-with-javascript both use javscript for rendering the shapefile


4

Drag Marker and Geocoder with Coordinates https://gmaps-samples-v3.googlecode.com/svn-history/r49/trunk/draggable-markers/draggable-markers.html Entire code: <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <script type="text/javascript" ...


3

This line var area = event.geometry.getArea(); should be var area = event.feature.geometry.getArea(); So i believe this is what you're looking for: vectors.events.on({ featuremodified: featureModified }); function featureModified(event) { var area = event.feature.geometry.getArea(); var radius = 0.565352 * Math.sqrt(area); ...


3

Unfortunately, it won't import your ArcGIS project files, but QGIS has the HTML Image Plugin that may do what you want. Perhaps if you set up a QGIS project once, and just refreshed the data behind it, it would work for you? It may not meet all of your criteria, but I'm not sure anything will.


3

It should be pretty obvious that samples aren't meant to be serious applications: they're samples. That said, it's much less common, in the typical internet world, to use something like Backbone than to use dojo, which is known for being expansive and complex, but often unnecessary. If you could describe your objective more, it'd be easier to make a solid ...


3

Think you will need to create your own tilecache on 'localhost' see http://code.google.com/p/cumberland/wiki/TilePyramiderAndOpenLayers Examples Using vmap http://localhost:8081/vmap0/levelzero/0/0.png The tile near the middle of the tile set in the third zoom level of vmap0. http://localhost:8081/vmap0/leveltwo/3/4.png The tile near ...


3

Possible with the ESRI JavaScript API Note you will need to know the map id in this example it is '5b9675ca7ca9426a99ced88f66b42331' var mapDeferred = esri.arcgis.utils.createMap("5b9675ca7ca9426a99ced88f66b42331", "map" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> ...


3

you must be having map div.put following code <div id="map"> <input id="Addlyr" type="submit" value = "Add Layer" style="position: absolute; z-index: 1000; left: 100px; float: right;" /> </div> if you want new button and put nice style adjust using css in style attribute of input button. If you are referring + and - button then ...


2

Maybe another approach: Geopublisher http://en.geopublishing.org can publish your maps for offline use. Geopublisher is a Desktop software that allows you to plug together vector and raster data and create digital maps. Then you can export this map as a stand-alone Java application. It even creates autostart files etc. and does not require a Java ...


2

You are getting the validation error because esri is using declarative dojo syntax which is not valid w3c html. After the dojo.parser updates the html it should be valid markup. In your example they are actually mixing the html5 acceptable way and the old way. label is not allowed on a button. I'd imagine dojo slips that <button>label</button> ...


2

I believe the tool you want is the XSLTransform_conversion tool. This tool is found in ArcToolbox's Coversion tools. Look in Conversion Tools, then open the Metadata toolset. It's called XSLT Transformation. If you execute it in python, it's the arcpy.XSLTransform_conversion() method. You can look it up in ArcGIS Desktop help for a full description. ...


2

The result is in meters. To get the kilometers, multiply the radius by .001. I came to this conclusion by testing your code against google earth's measuring tool. And it makes sense because your map units are in meters. However, i'm confused as to what code you used to get the screenshot above because when i test your code i get something very different. ...


2

I haven't used this ArcScript before, so I'm not sure which of your criteria it does or does not meet, but it sounds like a good starting place. And, of course, being a script you should be able to customize it to your heart's content. Edit: Here's another potential candidate.


2

If you are looking for state-of-the-art developments in HTML5 dynamic map applications, this question has quite a few resources. Personally, I'd say look into OpenLayers. It is a great Javascript mapping library that utilizes the canvas element. Hook it up with GeoServer or MapServer, and you should be able to "just update the database" similar to how you ...


2

checkout shp2Mapstraction.py here which makes your point data to html with desired map provider.(in this trunk you can find more files for some purposes.) Usage: shp2Mapstraction.py worker.shp workers.html Yahoo and here there is some information about it. i hope it helps you...


2

I have put together a simple function for you: function markerCoords(markerobject){ google.maps.event.addListener(markerobject, 'dragend', function(evt){ infoWindow.setOptions({ content: '<p>Marker dropped: Current Lat: ' + evt.latLng.lat().toFixed(3) + ' Current Lng: ' + evt.latLng.lng().toFixed(3) + '</p>' }); ...


2

May your question belongs better to stackoverflow.com than to the GIS community. Btw: if you post some of CSS you created otherwise no one will find a mistake. How do you create the panes in HTML or JavaScript? Which version of Dojo are you using? EDIT: I just tried something like this: <div id="tp2" data-dojo-type="dijit/TitlePane" ...


2

there is a way of doing it. Example: http://www.openstreetmap.org/?lat=12.345&lon=12.345&zoom=17&layers=M fomr here For google there is a similar question Bing example - http://www.bing.com/maps/?v=2&cp=53.02102351~-1.48398532&lvl=16&dir=0&sty=c as taken from the question posted here


2

I think you can solve this problem, if you adapt your situation, like in the example bellow. Presuming this is how it looks the vector layer's attribute table: Here's the images' storing folder: And this is the annotation.html : <b> [% "name" %] </b> <br /> <img src=file:///c:/temp/images/[% "img_src" %].png /> Eventually, ...


1

What is the exact error in the console? Run it with firebug or chrome, please. What I suppose is the reference to value: document.getElementById('searchText1').value is failing because the code is loaded before your code and those the input element doesn't exists yet when the JS runs. Try to put your code at bottom before close the . Cheers.



Only top voted, non community-wiki answers of a minimum length are eligible