Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

22

You forgot to add Leaflet CSS: <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> Also there are numerous typos in your code: for example, in html, body{} stylesheet line. Do check for them before deploying to production.


6

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


5

Couldn't you try something like... SELECT encode(ST_AsPNG(rast), 'base64') FROM foo Granted, I have no idea if that'll work but it is worth a shot.


3

from the w3c specification (under 'specifications' of your link): The altitude attribute denotes the height of the position, specified in meters above the [WGS84] ellipsoid.


3

A folder is also a workspace (e.g. for shapefiles). I do not think there is a built-in filter for selecting geodatabases (if that's what you mean). You can pretty easily implement IGxObjectFilter yourself, though.


3

You can convert your shapefile to GeoJSON and use tools like leaflet to Display it in an HTML page. To convert a shapefile to GeoJSON you can use Quantum GIS (It's a great GIS tool). and also there is online convertion services: http://ogre.adc4gis.com/ or http://www.mapshaper.org/


3

You can have a look at WebGLEarth. WebGL Earth is an open source software enabling visualization of maps, satellite imagery and aerial photography on top of a virtual terrain. You can use the online globe together with your own data in any browser on any platform including mobile devices. The project is sustained through the support and ...


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

Well, I managed to figure out what was going on. Google Chrome's zoom feature doesn't respond well with OpenLayers and Google Maps. I noticed that my zoom was on 110% instead of normal 100%. As soon as you switch to 110% from 100% the 1px gap between all the tiles appears! This 1px gap will appear on some of the zoom levels. Also, the map responds more ...


2

NASA Worldwind has a JAVA SDK with a browser plugin. There are various other 3D globe projects - but most do not have a browser plugin, hence why I only mention this one.


2

Anders: As of version 10.2, it seems you really can't get ArcMap to open an URL in any browser other than IE. But you can require the IE version you need to best render your content. Supposing your Windows is properly updated, you should have IE 11 installed. If that is the case, you can produce HTML content, to open in the popup, comprising a meta tag ...


2

Try adding a dummy timestamp parameter to the WMS call in OpenLayers which should be ignored by the server but will stop browsers caching tiles, for example: params: { 'VERSION': '1.1.1', 'LAYERS': 'osm_auto:all', 'TIMESTAMP': new Date().getTime() }, If you need to reset while a page is loaded use code such as layers[0].getSource()....


2

When modern browsers behave dramatically differently it is usually worth validating your HTML using an online validator such as https://validator.w3.org/ since how they handle invalid html varies much more than how they handle valid html. In particular look for unclosed tags in the popups. If you can't get this to work I suggest posting the content of one of ...


2

The coordinates you're passing in are latitude and longitude values so the input coordinate reference system (CRS) should be 'EPSG:4326' or some other geographic CRS instead.


1

You could use the FileAPI: http://www.w3.org/TR/FileAPI/ Here is one example: http://renevier.net/misc/mapfileapi.html If you need a kml file to test: http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/kml/sundials.kml And here the browsers that support the fileapi: http://caniuse.com/#feat=fileapi The same as jsfiddle for own tests: http://...


1

You might be better off avoiding GWC and hitting the WMS end point directly and modifying the HTTP Cache settings on the Layer Publishing tab. I'm not sure if that setting is still used if you go through GWC. Also using vector tiles seems like a lot of work for a rapidly changing data set, you might do better with simple png images.


1

In Firefox you can give the geolocation permission per website: I assume that it is the same for other browsers. So while the browser itself can have permission to access the Geolocation API, it could be blocked for your specific application. PS.: I wonder if Internet Explorer even supports the Geolocation API. For Safari, this support article could help.


1

I have just reproduced the procedure and I completed the §6.4.2 without any problem. Maybe, the browse button was not clickable since you weren't in the edit mode: Instead, enabling the edit mode will lead you to edit the filepath for the image:


1

Pix4D supports output of 3D textured mesh in the .ply format. Try outputting that format, then opening it in Sketchfab once you make a free account (not advertising, just noting that you need an online account.)


1

I've solved using Selenium Web Driver and OpenLayers 2.13. For those that could be interested you can find some code examples here https://github.com/cesaregerbino/TestSeleniumWebDriverOpenLayers (in italian) The examples are the follow: InterActiveZoomIn MeasureAreaOpenLayers IdentifyOpenLayers GetFeatureInfoWMS EditingOpenLayers ...


1

Keep the value of url for ArcGISTiledMapServiceLayer and ArcGISDynamicMapServiceLayer in a single line. Like url="url_value_in_sigle_line" <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" xmlns:esri="...


1

The solution is in the problem: do you need to switch each layer individually? Instead you could merge some layers to avoid to query n tiles * n layers. This article may help you to change your viewpoint. If you don't change your viewpoint, You can use WMS with an intermediate tile cache to keep decent performances. Why I recommend WMS although most people ...


1

Per http://resources.arcgis.com/en/help/main/10.1/index.html#//00s500000004000000, you point the hyperlink settings to the particular field and use the hyperlink tool (lightning bolt) on the feature. As for hyperlinking directly from the attribute table, I'm not sure.


1

SDE metadata catalog is quite different from FGDC metadata. You might consider creating an xml view of your sde data catalog and serve that to an esri simplified template. I just found this link that might be of help. Chris North from esri


1

This is working in IE10 (Windows 8), I did see the black outlining in IE9 (Windows 7) So it must be a bug in IE9 Rendering. You can emulate a working IE9 by using "IE=EmulateIE8" see the accepted answer here: https://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge


1

Thematic Mapping Engine API "The goal of this site is to investigate and show how geobrowsers can be used for thematic mapping."** http://thematicmapping.org/api/ Uses Google Earth - you can use the EARTH MODE in the Web browser https://developers.google.com/earth/documentation/examples


1

"However, I would like to incorporate GeoServer into this workflow so that I can style data in the future." If you mean modifying/editing geometry WFS-T is a good option indeed. But if you mean just changing the style of the map (so different colors for the values of attributes etc) you should focus on SLD. In any case you will need a Geoserver pointing ...


1

This is a late answer, but you can try the new pure Javascript 3D Earth API at AtomJump.com, which runs in any browser from IE7+ up to Android/iPad/iPhone. There is no need for WebGL either, so it is production ready.


1

I know that google earth has a 3d browser plugin, but a requirement of this project as that I need to be able to host my own map server The Google Earth API is an excellent API for viewing the 3rd dimension in the browser, and you know its also a futureproof option to go with. If you use a Mapserver that supports outputting the KML format... ArcGIS ...


1

you can check ReadyMap which is an excellent webgl technology. There is an information about your interest in this link. i hope it helps you.


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