Hi!

I tried to use the ScaleLine control to my OL map but apparentrly there
something strange.

This is the syntax I used:

map.addControl(new OpenLayers.Control.ScaleLine());

and the result is this new div:

<div id="OpenLayers.Control.ScaleLine_144" class="olControlScaleLine
olControlNoSelect" style="position: absolute; display: block; z-index:
1008;" unselectable="on">
<div class="olControlScaleLineTop" style="visibility: visible; width:
82px;">100 km</div>
<div class="olControlScaleLineBottom" style="visibility: visible; width:
66px;">50 mi</div>
</div>

Shouldn't appear a scalimeter?


Simone

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Burgholzer,Robert
Sent: 17 June 2008 14:33
To: Eric Lemoine; Dipl. Inf. Carsten Eider; [email protected];
[EMAIL PROTECTED]
Subject: Re: [OpenLayers-Users] [OpenLayers-Dev] OL-Based GeoEditor

Sorry to delay the response, I have been offline for a few days.

The reason I sent the PG thread was that I thought that it would be easier
to use that method to split the line, since select-feature.html has the
"select" part, and the "draw a line" part.  Then, using the pg function, you
could manage the "split" part.  

Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
[EMAIL PROTECTED]
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/

-----Original Message-----
From: Eric Lemoine [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 5:30 PM
To: Dipl. Inf. Carsten Eider; Burgholzer,Robert; [email protected];
[EMAIL PROTECTED]
Subject: Re: [OpenLayers-Dev] OL-Based GeoEditor

Hi. Have you tried using two select feature control instances, one
with geometryType set to polygon and one with geometryType set to
point. Just a guess, i've never tried this myself. Cheers. Eric

2008/6/16, Dipl. Inf. Carsten Eider <[EMAIL PROTECTED]>:
> my problem is not the algorithm how to split the field,
> it is more the way how to select one polygon, then select two corners
>
> which control should i use?
> a modified modifycontrol or can i reuse a selectcontrol?
>
>
> Burgholzer,Robert schrieb:
>>
>> For step 1) The Openlayers example "./examples/select-feature.html"
>> shows how to select a vector feature.
>>
>> For step 2-3, ,f you are using postgis server side, there was a thread
>> recently on the PostGIS listserv that involved some code for splitting
>> a polygon with a line.  I think this might work for you.  Since you
>> already have the capability to draw new shapes you may wish to change
>> steps 2-3 to:
>>
>> 2) draw a line
>>
>>
>>
>> and then simply use the function from PostGIS to split your selected
>> polygon.
>>
>>
>>
>> The thread pertaining to this is here:
>>
>>
>>
>>
http://postgis.refractions.net/pipermail/postgis-users/2008-May/019892.html
>>
>>
>>
>>
>>
>>
>>
>> Robert W. Burgholzer
>>
>> Surface Water Modeler
>>
>> Office of Water Supply and Planning
>>
>> Virginia Department of Environmental Quality
>>
>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>
>> 804-698-4405
>>
>> Open Source Modeling Tools:
>>
>> http://sourceforge.net/projects/npsource/
>>
>> -----Original Message-----
>> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> *On Behalf Of *Dipl. Inf. Carsten Eider
>> *Sent:* Friday, June 13, 2008 4:25 AM
>> *To:* [email protected]; [EMAIL PROTECTED]
>> *Subject:* [OpenLayers-Dev] OL-Based GeoEditor
>>
>>
>>
>> Hi folks,
>>
>> i am working on a small geo-editor for an agricultural project in
>> rhine-palatinat/germany, visit http://www.agroconnect.de for more
>> information.
>> Upto now my editor has the following features:
>>
>> ·         new polygon, plain OL
>>
>> ·         edit polgon, plain OL
>>
>> ·         delete polygon, plain OL
>>
>> ·         union polygon, OL with a javaserver in the backend
>>
>> Coming feaures:
>>
>> ·         split polygon into 2 elements, OL with server backend
>>
>> ·         group polygons
>>
>> At the moment i am hanging a bit with the split-feature.
>> My idea is
>>
>> 1.      select polygon
>>
>> 2.      select first point/vertix as starting point
>>
>> 3.      select second point as ending point
>>
>> 4.      do split
>>
>> 5.      remove polygon and add the new ones
>>
>> Step 4 will be done on serverside,but could also be done on clientside.
>>
>> Any ideas how to realize steps 1-3. Should i use several controls
>> (Select and Modify) or
>> should i subclass Control.ModifyFeature ?
>>
>> Any hints will be appreciated.
>>
>>
>> --
>> Mit freundlichen Grüßen / Yours faithfully
>> Carsten Eider
>>
>> Dipl. Inf. (FH)
>>
>> Kompetenzzentrum für Innovative Informationssysteme
>>
>> c/o Fachhochschhule Bingen / University of applied sciences Bingen
>>
>> Berlinstraße 109
>> 55411 Bingen
>>
>> Tel: +49 (0) 6721 / 409-179
>> Fax: +49 (0) 6721 / 409-158
>> email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>> Internet: iis.fh-bingen.de
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
>
> --
> Mit freundlichen Grüßen / Yours faithfully
> Carsten Eider
>
> Dipl. Inf. (FH)
>
> Kompetenzzentrum für Innovative Informationssysteme
>
> c/o Fachhochschhule Bingen / University of applied sciences Bingen
>
> Berlinstraße 109
> 55411 Bingen
>
> Tel: +49 (0) 6721 / 409-179
> Fax: +49 (0) 6721 / 409-158
> email: [EMAIL PROTECTED]
> Internet: iis.fh-bingen.de
>
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to