u're passing into OL accordingly? Or is there another,
less kludgy approach that I've missed?
Thanks,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
imate Layer
Control just now (even if I could my time is getting tight), but are
there any useful techniques to somehow juggle the visibility and
displayInLayerSwitcher Layer properties or tweak the CSS to get around
this limitation?
Any suggestions, anyone?
TIA,
- Bill Thoen
_
gle use for Google Maps
>
> We use the Mercator projection for our maps. Wolfram MathWorld has a good
> page on the projection (and a bunch of other map projections):
>
> http://mathworld.wolfram.com/MercatorProjection.html
- Bill Thoen
___
hey, might be willing to do
short and quickly. This could go in the wiki, linked to the general
Documentation page and eventually be incorporated in the official
documentation.
(sorry for writing a novel here this morning, but three cups of coffee
can cause loggorhea!)
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
right syntax.
TIA,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
in the Examples (at http://openlayers.org/dev/examples/), so it
runs quick and takes up little space. So if someone could tell me how I
should add my two or three grains of knowledge to the documentation, I'd
appreciate it.
Regards,
- Bill Thoen
__
etted HTML and
JavaScript code into the site. But if someone with the right authority
would please contact me I'd like to know how I can add to the examples
collection there.
TIA,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://open
te layers for the overview, it
worked perfectly.
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
r own that
sometimes I hardly know where to start!
Thanks,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
TYPE_TOGGLE and
TYPE_TOOL controls or is this single button icon behavior a WAD (Works
As Designed) to keep the tool simple?
Thx,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
one can point me to what I'm looking for.
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
see that your displayClass is olInfo, so you need to use
> olInfoActive for the map cursor:
>
> .olControlPanel .olInfoItemActive {
> background-image: url("../img/info-on.png");
> }
>
> .olInfoActive {
> cursor: pointer;
> }
>
> Best reg
Hi Bill,
>
> please try:
>
> .olControlPanel .olInfoItemActive {
> background-image: url("../img/info-on.png");
> }
>
> .olInfoItemActive {
> cursor: pointer;
> }
>
> Best regards,
> Bart
>
>
> Bill Thoen wrote:
>> I'm not sur
uot; : false};
// Add the control panel
var toolArray = [];
for( var i=0; i Hi Bill,
>
> not sure, can you check the css class which has been set on the map
> viewport div when you activate a tool? They should have those values.
> Maybe there is another class which is preventing
ht there had been some work done on this.
>>
>> If not, can someone tell me the best place to set the cursor icon for
>> tool buttons? Is there an "on activate" event I can listen for, or is
>> there a better way to do this?
>>
>> Thx,
>> -
s? Is there an "on activate" event I can listen for, or is
there a better way to do this?
Thx,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
Just change the css style in ol/theme/default/style.css for
.olHandlerBoxZoomBox. It looks like this:
.olHandlerBoxZoomBox {
border: 2px solid red;
position: absolute;
background-color: white;
opacity: 0.50;
font-size: 1px;
filter: alpha(opacity=50);
}
For example, to chan
s I can put those questions out for
consideration, but I'd like to know the answers too.
Thanks,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
lf
into places you have no business being.
But if you got the answers to all your problems immediately, your heart
wouldn't become purified by the long quest.
Good luck!
- Bill Thoen
shane_china wrote:
> Hi, Bill Thoen, I go to the website and find the formulary I want. As
> f
e that I can use these functions on projected
coordinates... but maybe not?
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
Never mind, I think I got it. You don't use 'new' with these functions.
Bill Thoen wrote:
> Just trying to debug a box drawing routine, I got this error:
>
> *this.getViewPortPxFromLonLat is not a function*
>
> on Line #746 in file: http://mydomain.com/ol/OpenLayer
Yes, it's a little different for the spherical (Lon/Lat) case. For those
formulas, check out Ed Williams' Aviation Formulary website at
http://williams.best.vwh.net/avform.htm. What you're looking for is
determining waypoint locations, i think.
- Bill Thoen
shane_china wrote:
stance is
D = sqrt((X1-X0)*(X1-X0) + (Y1-Y0)*(Y1-Y0))
Then if the ratio between this and the distance to your point is d, your
new point's coordinates will be:
X= X0+(X1-X0)*d/D
Y=Y0+(Y1-Y0)*d/D
HTH,
- Bill Thoen
___
Users mailing list
Users@op
There's a good description on that subject right here:
http://trac.openlayers.org/wiki/SettingZoomLevels
- Bill Thoen
toni hernández wrote:
> Does anyone know if it is possible to set the minscale and maxscale on
> a layer so it shows and hides depending on the scale of the map.
>
locations
between IE and FireFox? Don't developers read WC3 specs? Arrg!
Anyway, if anyone has a suggestion (or can direct me to a better place
to post this) I'd appreciate hearing from you.
Thanks,
- Bill Thoen
___
Users mailing list
Users@o
ibutes displayed.
Then in OpenLayers for each layer you want to be queryable, you need to
add the queryable:true parameter to the options object when you load
each WMS layer.
Since this uses AJAX , you may also need to set up a proxy script.
Anyway, if you do all that, you can then use this t
he layer is
visible between 1:1 and 1:100,000 or that it is visible only at scales
smaller than 1:100,000?
Bart van den Eijnden (OSGIS) wrote:
> Hi,
>
> minScale and maxScale should be denominators, so use 10 and not
> 0.1.
>
> Best regards,
> Bart
>
> Bill T
1, expecting that once I zoom out to say, 1:120,000,
the land parcel layer should have its visibility property set to false
and the layer should be invisible. But it continues to stay visible.
Can somebody tell me what I'm doing wrong? (I'm using OpenLayers 2.7, in
case that matters.
he code gets into the read() function in WMSGetFeatureInfo.js at line
74-75.
Under the same conditions FireFox sets the response.responseXML to null
and has no problems.
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
ds. Google
coordinates certainly won't work with Vincenty because that expects
coordinates in decimal degrees.
- Bill Thoen
Alessio Di Lorenzo wrote:
> Hi all,
>
> I'm using the measurement tool in an application that uses google maps as
> base.
> My problem is that the me
't name a file correctly.) And I discovered
that the line numbers make sense if you can guess which js module to
open (the IE error reporter always says the error is in the main html
module, even if it's in a *.js file.)
Thanks for the help, guys!
- Bill Thoen
rough the whole code alternately commenting out chunks
until you find the one with the bug in it (which is never where IE says
it is!) Is there a tool like Firebug for IE? Any suggestions or tips on
how to deal with this cranky software would be welcome.
- Bill Thoen
__
reasonable?
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
I think that 'color' is one of the options you can use when you create a
LayerSwitcher control.
Ivan Grcic wrote:
> Hi,
>
> you can use firebug to find which style is being used for desired
> component (inspect button) and create ur own style class to override
> defaults.
>
> cheers
>
> On Fri, F
I'd recommend you use the wiki, maybe the UserRecipes page
http://trac.openlayers.org/wiki/UserRecipes
Kai Behncke wrote:
> Dear Openlayers-Users,
>
>
> I use an application with a couple of point objects (500) visualized by a wms
> in the map.
>
> I´m looking for a function that pops up a small
tBaseLayer() or similar, and redraw() alone doesn't react to a changed
base layer. So what I did was set layerStates.length = 0 and called
redraw(). This works, but I was wondering if this is the best way to
handle it?
- Bill Thoen
___
Users mai
ed into OL as a WMS layer with the name 'naip'.
Is this the right approach for creating a multi-zoom layer or can I even
do something like this with OpenLayers?
Thx,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
ition -- published just prior to all the excitement with JSON and
AJAX. I wondered why such a thick book seemed to have said little or
nothing about a big part of the language.
- Bill Thoen
Tim Schaub wrote:
> Hey-
>
> Bill Thoen wrote:
>
>> In the OpenLayers wiki on page
>> ht
In the OpenLayers wiki on page
http://trac.openlayers.org/wiki/CodingStandards it says, "OpenLayers
uses the JSAN standard for laying out source files" Is there a
reference URL for this standard? I'd like to learn more about it.
___
Users mailin
yline in one query layer crossing a polygon in another
query layer, I get the nearest record from each, with the line record
listed first only if I click very exactly on the line. Otherwise it
appears second in the returned data.
- Bill Thoen
Kimball, David (DCR) wrote:
> Hi everyone,
>
&g
ible, so we want to
avoid platform-specific protocols.
So does anyone have some suggestions as to what the best way to do this
is, or where I could go to learn more about doing something like this?
TIA,
- Bill Thoen
___
Users mailing list
Users@openlayer
returns if they
are closer than records that are visible. But at least it's working now
and will solve my problem of providing data attributes for features in
WMS layers.
- Bill Thoen
Arnd Wippermann wrote:
> Hi Bill,
>
> You have to delete the blank in QUERY_LAYERS: "us
ly. Even if I click on a spot where features in both
layers coincide, it returns only the attributes for the layer listed first.
So how do I use multiple layers in the QUERY_LAYERS parameter, or do I
get only one at a time? Also, I just guessed at using the layer called
'base
into a querymap or a table template. Anyway, if anyone has done
this and has an example they'd be willing to share, I'd like to see how
it's done. If this technique actually works, I think it might be a good
way to get the benefits of vector features without having to use featur
When you open a WFS layer does OL load the entire data file, or just the
features that are visible in the map window? I tried feeding it a large
table and it took quite a while to display, so I was wondering if that
was because it had to dig into the table to find the features in the map
window
From the responses I'm getting in the "[OpenLayers-Users] Switching
Layers Assigned to a SelectFeature Control" thread and some Googling it
appears that handling multiple vector layers simultaneously in
OpenLayers is not well supported. In fact, it basically won't work. Only
one layer of featu
I've got three vector feature layers and I'd like to use the same tool
to select any feature from any of these layers. But I understand that
you can only have one layer selectable at a time. So I'm thinking that
if I change the layer reference in the control as needed, that will do
it. But it d
If we could get enough commitments at say, $45 each or more, then maybe
there would be enough to pay the developers to put a technical writer to
work on some electronic documentation that has more detail than the
current short scope works and robo-generated stuff. I'm thinking of the
same model
Never mind... I solved it by changing all references to the IP
192.168.0.250 to 'localhost'. Even though on my network localhost is
192.168.0.250, I guess if the URL says localhost, then all your data
resources need to be referenced the same way.
___
U
I'm trying to get a layer of lines to open as a WFS layer and I'm
getting this error:
uncaught exception: Permission denied to call method XMLHttpRequest.open
When I issue a GetRequest directly to the server via the browser url
window, I get an XML file with all the expected data. But when I tr
Sorry, that DOES work. I had a typo. Thanks again!
Arnd Wippermann wrote:
> I would think, your Content-Type is wrong
>
> http://faq.openlayers.org/ajax/how-do-i-post-form-encoded-data/
>
> Arnd Wippermann
>
>
___
Users mailing list
Users@openlayers.
layers.org [mailto:users-boun...@openlayers.org] Im
> Auftrag von Bill Thoen
> Gesendet: Sonntag, 11. Januar 2009 20:48
> An: users@openlayers.org
> Betreff: [OpenLayers-Users] Need Help with OpenLayers.Request
>
> Can somebody explain to me how to pass data to my server side program us
Can somebody explain to me how to pass data to my server side program
using OpenLayers.Request? The following example seems to work, only
there are no variables in the $_POST array. My handler prints only:
result is $_POST variables
But apparently the array is empty. What am I missing here?
H
Christopher Schmidt wrote:
> On Fri, Jan 09, 2009 at 01:24:27PM -0700, Bill Thoen wrote:
>
>> Does anyone have a simple example showing how to use OpenLayers.Request
>> to move data back and forth between an OL application and a
>> PostgreSQL/PostGIS database? I got
x27;t need to load that library. Unfortunately, I'm
still pretty new to AJAX, and the lack of detailed documentation on the
OpenLayers.Request class puts this out of my reach without some help.
TIA,
- Bill Thoen
___
Users mailing list
Users@openlayer
I have a vector layer of points with associated attributes and I want to
use one of those attributes as a label for the points. I thought this
would be simple, but it's proving to be elusive. Can someone here
explain how to do this in OpenLayers 2.7?
Thanks,
- Bill
I want to create some points in a vector layer and associate some data
values with them. It looks like I could store them in either the point
feature's data object or its attributes object. Which should I use and
what's the difference between these feature objects?
__
mat them
as specified in
http://mapserver.osgeo.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url,
putting the directive hierarchy in the key and the final parameter and
its value in the value. Also use spaces instead of the '+' characters.
Thanks again!
- Bill Thoe
Chris Adams wrote:
> Could you clarify what you mean by setting the layer color? Perhaps
> you mean adding a tint to colour of the tiles, or changing the colour
> of tile backgrounds before they load?
>
What I want to do is change the global fill color for the layer's
polygon features from pale
ot;init=epsg:32614" # UTM Zone 14 N WGS84
END
STATUS DEFAULT
END
Christopher Schmidt wrote:
> On Thu, Jan 01, 2009 at 04:08:24PM -0700, Bill Thoen wrote:
>
>> In several places in the OpenLayers Constructor functions there is a
>> parameter that is an object
an object. What are the available tags that can be used here and where
do I find out what these are? Are they the parameters from a map file,
like LAYER.CLASS.STYLE.COLOR: "255 255 0" or something like that?
TIA,
- Bill Thoen
___
I'm working on an OpenLayers application that requires the user to
create a polygon that is used in a separate server-side calculation so I
have to turn it into a shape file first. For any one user, I can just
create a new PostGIS table and simply call it "RegionOfInterest" and
then run the CGI
plen wrote:
> I see that there is a feature.geometry.getArea() function. This returns
> some value which I am unsure as to its meaning (square degrees?). I have
> seen previous posts that sort of get into determining polygon areas but
> nothing seems clear. Maybe this is a bigger type issue than
s into the
library. (I've got lots of experience with GIS, but I'm pretty new to
JavaScript and OpenLayers.) So if you're interested in this, let me
know. I could use the help. In the meantime, I'll put together the code
I have into a short demonstration and get it out
I'm still trying to puzzle out how things work in the
OpenLayers library with its JSON syntax.
TIA,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
I'm trying to get transform() to convert coordinates from WGS84 to UTM
Zone 14. I've included Proj4js.js in this little example, but I can't
get it to work. Can anyone tell me what's wrong?
Projection Test
http://openlayers.org/api/2.7-rc1/OpenLayers.js";>
Christopher Schmidt wrote:
> On Fri, Sep 05, 2008 at 01:10:53PM -0600, Bill Thoen wrote:
>
>> Christopher Schmidt wrote:
>>
>>> In 2.7RC1 (just released) you can use getDataExtent() for that. (We
>>> didn't add getDataExtent for vector layers unt
That line is in the Atlantic Ocean at a spot just north of the Azores.
But if you're expecting it to show up somewhere in South Africa, you
need to specify coordinates as Lon, Lat instead of Lat, Lon.
Kenny France wrote:
> could somebody Pleaase have a look at the following and tell me why
> i
Never mind... I just figured out that getDataExtent() applies to
markers, not features like polygons and linestrings. Does anybody know
if there is a function for WFS layers that returns the bounding box of
that layer regardless of what type of map objects it contains?
Bill Thoen wrote:
>
s
myStates.getDataExtent() return null? Shouldn't this function return the
bounds of the features now loaded into this layer? Or are the bounds
not updated when a WFS layer is loaded?
Eric Lemoine wrote:
> How about map.zoomToMaxExtent()? Eric
>
> 2008/9/5, Bill Thoen <[EMAIL PROT
these
are pipeline networks for different companies).
Eric Lemoine wrote:
> Hi. Why don't you use map.setCenter to zoom to a specific zoom level? Eric
>
> 2008/9/3, Bill Thoen <[EMAIL PROTECTED]>:
>
>> I want to zoom a map to the extent of a layer (called baseLayer)
I've got a WFS layer of line features and I got the 'loadend' event to
call a function, and in that function I'm trying to change a feature's
strokeColor to yellow. Here's my code that doesn't work. But why doesn't it?
function changeFirst (e) {
e.object.features[0].style.strokeColor="#FF0";
t when the features are loaded
and then call my function to cycle through them that would make my day.
Bill Thoen wrote:
> I've got a collection of lines in a WFS map layer, and I can access them
> interactively with a selection control, but I want to be able to step
> tr
e
markers, yet I can see and select the lines from this layer. I just
can't find them in the layer object. Are they stored in some other
object? How do I get one of these lines into a variable so I can work
with it?
TIA,
- Bill Thoen
___
User
I want to zoom a map to the extent of a layer (called baseLayer) but
when I try:
map.zoomToExtent(baseLayer.getDataExtent());
the baseLayer.getDataExtent() function returns null. When I don't
include this line everything works fine (the layer appears normally,
only without the zoom that I want.)
? The default style for linear
features appears to be solid 1px orange, but I want to apply some
different styles.
TIA,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
In the example
http://openlayers.org/dev/examples/custom-control-point.html, the line
that says:
map = new OpenLayers.Map( $('map') );
I suppose this must return a reference to a div named 'map' but why wrap
it in such a weird function? Wouldn't
map = new OpenLayers.Map( "map" );
work just a
Sanjiv
>
> On Mon, Sep 1, 2008 at 10:52 PM, Bill Thoen <[EMAIL PROTECTED]> wrote:
>
>> What is a Permalink? I can't seem to find a definition for this.
>>
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
What is a Permalink? I can't seem to find a definition for this.
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
ode
studies," but I can also put together a short explanation of the
algorithms and the pros and cons of the three different approaches for
the wiki, if you think that would be useful.
- Bill Thoen
Erik Uzureau wrote:
> Hi Bill, super interesting work you've done here. Would you be
ting lines.
So Long, and Thanks for All the Fish,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
I figured out that by setting the property 'out' on the ZoomBox control
to 'true' the tool then becomes a ZoomOut tool. So I made two copies of
the tool and set one of them to out=true. But then how do I style them
differently? Since they're both ZoomBox controls they get assigned the
same CSS
ctor", {isBaseLayer:
> false}). Hope i am correct and this is helping :-) Eric
>
> 2008/8/13, Bill Thoen <[EMAIL PROTECTED]>:
>
>> I'm trying to set up some little experimental maps in OpenLayers using
>> just a vector layer -- no base map. It's not wo
I'm trying to set up some little experimental maps in OpenLayers using
just a vector layer -- no base map. It's not working and I wondered is a
base map layer required, or can you supply all the necessary options
when you create the map object?
___
Use
Never mind I found a working example of destroyFeatures() in the
source code in Vector.js under destroy:
Unlike most libraries, the source code to this one is amazingly helpful
and well-organized.
Bill Thoen wrote:
> From the API online docs it appears that Layer.Vector.destroyFeatu
se it? Can someone please show me a working example?
Thanks,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
es();' How should I do
this?
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
ed. I don't think it should matter, but note that this is
a MapServer layer and not a WMS layer.
Does anyone know why this isn't working?
TIA,
- Bill Thoen
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
Does the zoom-in tool only work at integral zoom steps? I don't seem to
be able get to any map scales that are not available through the ZoomPan
control. Is this normal behavior and is it possible to get to say, zoom
level 2.3 or set the map to any scale desired?
- Bill
I've been experimenting with the Custom Control Panel example
(http://openlayers.org/dev/examples/panel.html) but I was wondering what
the most efficient way to arrange the buttons horizontally instead of
vertically?
- Bill Thoen
___
Users ma
AT section, as in the following example:
var layer = new OpenLayers.Layer.MapServer( "World",
"http://my_domain.com/cgi-bin/mapserv";,
{
map_imagetype: 'AGG',
layers: 'my_layer',
map: '/var/www/html/my_mapfile.map',
}, { single
I'm just getting started with OpenLayers so I have a lot of questions,
but I'll try to pace myself.
Anyway I've been using MapServer and I've compiled it with AGG support
so I can get nice anti-aliased maps, but when I feed a .map file to
OpenLayers that includes the AGG driver in the OUTPUTFO
92 matches
Mail list logo