ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 slippymap change marker

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
klausdoege Posted - May 27 2015 : 12:46:56
Hi,
how can I change in GeoMaps example the marker(Pin).
I'd like to use your own markers, with a smaller size.

Klaus
www.klausdoege.de
9   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 18 2015 : 16:18:51
Hi

Just make a TIEBitmap property of your form, create it in FormCreate (and load your pin image) and free it in FormDestroy.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
ali3tareh Posted - Nov 18 2015 : 07:08:49
thanks a lot for your help.would you please give an example about private field
and also how to draw polyline?
Best Regards
xequte Posted - Nov 11 2015 : 20:06:09
Hi

Please see the GeoMaps demo. In the ImageEnView1DrawBackBuffer() event the marker is just a bitmap that is loaded from a buffer (in the ims unit). You can easily replace this with any bitmap you like, e.g.

// Draw a custom pin
MyPin := TIEBitmap.Create( 'C:\MyCustomPin.png' );
MyPin.RenderToTBitmapEx(ImageEnView1.BackBuffer, 
                        x - MyPin.Width div 2, 
                        y - MyPin.Height div 2,
                        MyPin.Width, MyPin.Height
                        0, 0, MyPin.Width, MyPin.Height, 
                        255, rfNone);
MyPin.Free();


Of course, you wouldn't want to actually load the image in the draw back buffer event as it would be too slow, so you would have a private field in your form that stores it.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
ali3tareh Posted - Nov 11 2015 : 15:06:19
I also need to change in GeoMaps example the marker(Pin).
could anybody help?
xequte Posted - Jun 16 2015 : 18:54:30
Hi Klaus

Please see:

http://theroadtodelphi.wordpress.com/2010/08/07/using-the-google-maps-api-v3-from-delphi-part-i-basic-functionality/


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
klausdoege Posted - Jun 15 2015 : 03:15:45
Hi Nigel,
fine, have you a example for me?
How i must do that.


Klaus
www.klausdoege.de
xequte Posted - Jun 15 2015 : 00:00:35
Hi Klaus

It is using Open Street Maps, which do not provide a satellite view. You could embed an TWebBrowser object and display a google satellite map instead...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
klausdoege Posted - Jun 13 2015 : 15:02:32
Hi,
it's for map := TIESlippyMap.Create(iesmpOSM_Mapnik, 'cache');
a map from satelite available ?


Klaus
www.klausdoege.de
klausdoege Posted - May 28 2015 : 07:04:57
Hi.
i have the solution.
tks


Klaus
www.klausdoege.de