Tag Info

Hot answers tagged

7

div.olControlScaleLine{ color: white; } div.olControlScaleLine>div{ border-color: white; }


4

You can either define vector_term as global variable or pass it as argument in loadKMLTMINT function. To pass as parameter the function definition should be function loadKMLTMINT(terminalcode,vector_term) {


4

ThePlacename.com has an api that returns place borders in GeoJSON format: http://theplacename.com/restapi


3

Just edit the renderd.conf and add a section for your second style (make sure the "URI" entry points to a different path than that of your default style). For example, my renderd.conf contains the sections [default] XML=/etc/mapnik-osm-carto-data/osm.xml URI=/osm/ DESCRIPTION=This is the standard osm mapnik style HOST=host.my CORS=* MINZOOM=0 MAXZOOM=20 ...


2

We do not use GeoServer Authentication, but we do use an ASP version of that Proxy Script we wrote ourselves with some tweaks. Our script handles the authentication via a Hashtag we included in the WMS Client Calls. The HashTag is set into a database at the Application Level User Login and removed at LogOut or Timeout. It is sent to the client via Ajax ...


2

This is probably an artifact due to tiling. The layer preview map defaults to a single tile, but I'm guessing your openlayers map uses tiling. Geoserver insists on labeling every tile. GeoServer doesn't know that each request is for a tile in a larger map, so it treats a tile as a complete map and dutifully applies a label to it. So basically, if a road ...


2

I usually do this using QGIS. I load the kml layer, save as shapefile and add the columns that are necessary for rendering. Then I open a connection to my postgis database, delete everything inside the current view, and copy-and-paste the kml data into the postgis layer. I have created a separate bboxdb inside postgis for such cases, so my original osm ...


1

You are getting an error message from the server back in XML. You can view the message by extracting a tile url being sent to the server. This is easy to do in IE - just right-click on the map and copy the image url. Otherwise use Firebug or the debug tools in Chrome to extract the URL. Then just paste it into the browser directly. I'm not sure why you are ...


1

it depends which Beta Version of OL3 you are using. On the latest Version v.3.0.0 – gamma.2. there is no: new ol.source.SingleImageWMS The source name is: new ol.source.ImageWMS http://ol3js.org/en/master/apidoc/ol.source.ImageWMS.html Try to change that, maybe it solve the problem. Thank you for feedback.


1

Your problem is that WFS 1.0.0 does not support reprojection of the coordinates. If you switch your request version to 1.1.0 then GeoServer will take your srs into account.


1

solved It: function calculateArcPointsGeo(center, radius, startAzimuth, endAzimuth, segments) { var pointList = [], point, i, d = radius / 1000, // d = distance in km R = 6371, // km, R = earth's radius (mean radius = 6,371km) lat1 = deg2Rad(center.Y), lon1 = deg2Rad(center.X), ...


1

I was unable to find anything built-in going through the docs, only this ticket which does not appear to have ever been merged into OpenLayers. You can use the open-source Terraformer library by Esri to convert from Esri JSON to GeoJSON, then use the standard GeoJSON functions in OpenLayers to act on it from there. Alternately, it appears you can glue the ...


1

I think you need to specify the srs parameter of your layer: srs : '32024' //NAD27 or srs : '32126' //NAD83


1

When you work strictly with rules, your styles can be serialised to SLD, otherwise not. Working with static styles and context has a slight performance benefit.


1

Since you are a student, I will not give you the complete code, however here is a a way to do it: var totallayers; totallayers = map.layers.length; gives you the total number of visible layers So, simply get the Total Number of Layers as above then use a JavaScript Timer to call a function that increments the current layer counter, resets it to zero when ...


1

Computing a Convex Hull is possible in OpenLayers by using the external JSTS library. Although I haven't tried its implementation for convex hull, I have used it to create buffer/union etc. For more please go to this url also here you will find its implementation.


1

Probably after your requirements get complicated, it is best to think of making a scalable application. The advantage of working with a geometric column is the index, plus you can also work with wkt, GeoJSON and other standards that openlayers postgis and handle very well, so you would simplify the development Here you can find a good tutorial



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