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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 slippymap change marker
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - May 27 2015 :  12:46:56  Show Profile  Reply
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

klausdoege

Germany
389 Posts

Posted - May 28 2015 :  07:04:57  Show Profile  Reply
Hi.
i have the solution.
tks


Klaus
www.klausdoege.de
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Jun 13 2015 :  15:02:32  Show Profile  Reply
Hi,
it's for map := TIESlippyMap.Create(iesmpOSM_Mapnik, 'cache');
a map from satelite available ?


Klaus
www.klausdoege.de
Go to Top of Page

xequte

39106 Posts

Posted - Jun 15 2015 :  00:00:35  Show Profile  Reply
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
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Jun 15 2015 :  03:15:45  Show Profile  Reply
Hi Nigel,
fine, have you a example for me?
How i must do that.


Klaus
www.klausdoege.de
Go to Top of Page

xequte

39106 Posts

Posted - Jun 16 2015 :  18:54:30  Show Profile  Reply
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
Go to Top of Page

ali3tareh

Iran
3 Posts

Posted - Nov 11 2015 :  15:06:19  Show Profile  Reply
I also need to change in GeoMaps example the marker(Pin).
could anybody help?
Go to Top of Page

xequte

39106 Posts

Posted - Nov 11 2015 :  20:06:09  Show Profile  Reply
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
Go to Top of Page

ali3tareh

Iran
3 Posts

Posted - Nov 18 2015 :  07:08:49  Show Profile  Reply
thanks a lot for your help.would you please give an example about private field
and also how to draw polyline?
Best Regards
Go to Top of Page

xequte

39106 Posts

Posted - Nov 18 2015 :  16:18:51  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: