Jump to content


Photo

Google Map New Component


  • Please log in to reply
54 replies to this topic

#41 Marko Kastelic

Marko Kastelic

    Member

  • Members
  • PipPip
  • 37 posts

Posted 08 December 2011 - 12:28 AM

Hi,

Update to ver 1.4.2
Add SetZoom function

See DrawLine Sample.

Best Regards
Babak Yaghoobi


Thank you very much patmap,
it works.

You made new function setZoom,
As I can see is also new GMap.js,

Is maybe possible to call some other Gmap function,
or must be every function defined inside of UniGoogleMap component?

Thank you again,

Best regards,
Marko Kastelic
  • 0

#42 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 08 December 2011 - 06:40 AM

Thank you very much patmap,
it works.

You made new function setZoom,
As I can see is also new GMap.js,

Is maybe possible to call some other Gmap function,
or must be every function defined inside of UniGoogleMap component?

Thank you again,

Best regards,
Marko Kastelic


Hi,

I must be define any function in GMap.js and GoogleMap.pas component.

Best Regrads
  • 0

#43 Marko Kastelic

Marko Kastelic

    Member

  • Members
  • PipPip
  • 37 posts

Posted 15 December 2011 - 01:10 PM

Hi,

I must be define any function in GMap.js and GoogleMap.pas component.

Best Regrads


Dear patmap,

Is it possible to use onAjaxEvent, so I vould like to get event,
when zoomchange happens?

How to do this with UniGoogleMaps component?

Thank you in advance,

br,mk.
  • 0

#44 wsh

wsh

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 17 February 2012 - 04:20 PM

can't install the component!?
use unigui 0.88.0 build 941

uses UniGUIVars

[DCC Warning] WSHUNIGUI.dpk(54): W1033 Unit 'UniGUIVars' implicitly imported into package 'UniGoogleMapDXE2'
[DCC Error] E2223 $DENYPACKAGEUNIT 'UniGUIVars' cannot be put into a package
  • 0

#45 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9822 posts

Posted 17 February 2012 - 05:26 PM

Remove uniGUIVars from Uses list.
  • 0

#46 wsh

wsh

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 February 2012 - 12:40 PM

Remove uniGUIVars from Uses list.


[DCC Error] UniGoogleMap.pas(230): E2003 Undeclared identifier: 'UniGUIServerInstance'
  • 0

#47 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9822 posts

Posted 18 February 2012 - 01:28 PM

[DCC Error] UniGoogleMap.pas(230): E2003 Undeclared identifier: 'UniGUIServerInstance'


change
UniGUIServerInstance -> UniServerInstance
  • 0

#48 wxb_km

wxb_km

    Active Member

  • Members
  • PipPipPip
  • 99 posts

Posted 20 February 2012 - 06:54 AM

Hi

I install you UniGoogleMap in my Delphi xe2(unigui 0.88 0.0941),it cant't be compiled.
  • 0

#49 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9822 posts

Posted 20 February 2012 - 09:28 AM

it cant't be compiled.


Errors?
  • 0

#50 dynamo

dynamo

    Member

  • Members
  • PipPip
  • 35 posts

Posted 20 February 2012 - 04:04 PM

Thanks patmap.

for compling (Delphi XE2):

change UniGUIServerInstance -> UniServerInstance

for running (Delphi XE2):

change ServerModule ->ExtRoot -> [ext]\

add path Tools->Library->Library Path
  • 0

#51 Hayri Aslan

Hayri Aslan

    Advanced Member

  • Moderators
  • 430 posts
  • Location─░stanbul - Turkey

Posted 19 May 2012 - 05:03 AM

Hi patmap,

I want that when I click on unigooglemap, get Latitude and Longitude. How do this?
  • 0

#52 Hamid

Hamid

    Member

  • Members
  • PipPip
  • 31 posts

Posted 25 June 2014 - 12:37 PM

how install googlemap component on uniGUI Beta 0.94.0

i use xe5

 

can not find ExtPascal


  • 0

#53 Hamid

Hamid

    Member

  • Members
  • PipPip
  • 31 posts

Posted 06 July 2014 - 09:14 PM

in procedure

 

Procedure TUniGoogleMap.SetHTML ;
Var AjaxUrl, AjaxParam : String ;
Begin
  If Not (csDesigning in ComponentState) And WebMode And Not SameText(FMapName, 'GoogleMap_Name') Then
  Begin
    AjaxParam := 'isEvent=1&Obj='+ Self.ExtPanel.JSName + '&evt=maploaded' + '&_S_ID='+ UniApplication.UniSession.SessionID ;
    HTML.Text := '<div id="' + FMapName + 'Tag" style="width:100%; height:100%"></div><script>'+FMapName+' = new GoogleMapObject("' + FMapName + 'Tag",' + FloatToStr(FDefaultMapLat, LocalFS)+','+ FloatToStr(FDefaultMapLng, LocalFS) + ',' + IntToStr(FDefaultMapZoom) + ',' +  QuotedStr( AjaxParam ) + ') ;</script>' ;
  End;
End;

can not find Self.ExtPanel.JSName

 


  • 0

#54 golabi2000

golabi2000

    Newbie

  • Banned
  • Pip
  • 8 posts

Posted 22 October 2016 - 07:10 AM

Hi all

I Developed UniGoogleMap component for uniGUI.

Last Version 1.4.2 ( For Delphi XE - XE2)
Last Update 2011-12-07

important: must be install veriosn uniGUI ver 0.87.0.901 or later.

This component is a subclass of TUniHTMLFrame.
So i write a Objective Class for using GoogleMap API (files\GMap.js).
I used Google Map API V3.0
This Class uses a third party Class (markerwithlabel.js).

Attention: when you put this component on the form first set MapName property. If you want use multiple Map on your project, must be set unique name for this property.

After Install this component add in [uniGUI Additional] section of uniGUI components.

I add many future as soon as.

Many Thanks to Mr. Farshad for this usefull framework.

attachicon.gifuniGoogleMap.png


Best Regards
Babak Yaghoobi
 

 

 

Hi

How Install in Delphi Berlin ?

Please Help me 

Thanks


  • 0

#55 deljavan

deljavan

    Member

  • uniGUI Subscriber
  • PipPip
  • 24 posts

Posted 17 September 2017 - 05:24 AM

please help

 

i want test sample http://79.143.178.31...uniGMapDemo.dll in mobile.
but dont see current position in map.....

 

 

image : https://ibb.co/hSBbKQ

 

 

how use location in google chrome ?


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users